Fixed wrong password rendering broken by r14339 (#19851).

git-svn-id: http://svn.redmine.org/redmine/trunk@14341 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2015-06-19 20:12:24 +00:00
parent 0fccf648a7
commit a890215b51

View File

@@ -1,4 +1,4 @@
$("body").append($("<div>", {id: "sudo-modal"}).hide());
$('#sudo-modal').html('<%= escape_javascript render partial: 'sudo_mode/new_modal' %>');
var sudo_modal = $('#sudo-modal').length ? $('#sudo-modal') : $("<div>", {id: "sudo-modal"}).appendTo($("body"));
sudo_modal.hide().html('<%= escape_javascript render partial: 'sudo_mode/new_modal' %>');
showModal('sudo-modal', '400px');
$('#sudo_password').focus();