mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user