diff options
Diffstat (limited to 'app/views/sudo_mode/new.js.erb')
-rw-r--r-- | app/views/sudo_mode/new.js.erb | 6 |
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(); - |