Files
Redmine/app/views/sudo_mode/new.js.erb
Jean-Philippe Lang a890215b51 Fixed wrong password rendering broken by r14339 (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-19 20:12:24 +00:00

5 lines
267 B
Plaintext

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();