summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-19 19:56:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-19 19:56:52 +0000
commitf11bba5537b10423e2d7c3c0bf91d744396e227c (patch)
tree91529ab1d2536e9e1efa968bc049e1475822e187 /app
parentc2fca3799927112e6e4e4e1ff3a95995fd579cf7 (diff)
downloadredmine-f11bba5537b10423e2d7c3c0bf91d744396e227c.tar.gz
redmine-f11bba5537b10423e2d7c3c0bf91d744396e227c.zip
Fixed the sudo dialog when called from a dialog, eg. email addresses (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/sudo_mode/new.js.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/sudo_mode/new.js.erb b/app/views/sudo_mode/new.js.erb
index 34510fa54..ed77b32b1 100644
--- a/app/views/sudo_mode/new.js.erb
+++ b/app/views/sudo_mode/new.js.erb
@@ -1,4 +1,4 @@
-$('#ajax-modal').html('<%= escape_javascript render partial: 'sudo_mode/new_modal' %>');
-showModal('ajax-modal', '400px');
+$("body").append($("<div>", {id: "sudo-modal"}).hide());
+$('#sudo-modal').html('<%= escape_javascript render partial: 'sudo_mode/new_modal' %>');
+showModal('sudo-modal', '400px');
$('#sudo_password').focus();
-