1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

admin: update user's password from the admin

This commit is contained in:
Joshua Tauberer
2014-09-21 17:24:01 +00:00
parent 8dfbb90f3a
commit 846768efcb
4 changed files with 59 additions and 11 deletions

View File

@@ -182,6 +182,11 @@ var global_modal_state = null;
var global_modal_funcs = null;
$(function() {
$('#global_modal').on('shown.bs.modal', function (e) {
// set focus to first input in the global modal's body
var input = $('#global_modal .modal-body input');
if (input.length > 0) $(input[0]).focus();
})
$('#global_modal .btn-danger').click(function() {
// Don't take action now. Wait for the modal to be totally hidden
// so that we don't attempt to show another modal while this one