aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'data/assets/js')
-rw-r--r--data/assets/js/admin/dialogs/user-edit.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/data/assets/js/admin/dialogs/user-edit.js b/data/assets/js/admin/dialogs/user-edit.js
index fed9364..038a587 100644
--- a/data/assets/js/admin/dialogs/user-edit.js
+++ b/data/assets/js/admin/dialogs/user-edit.js
@@ -4,13 +4,13 @@ jQuery(function($) {
$('#user-edit-dialog').on('show.bs.modal', function() {
var me = $(this);
- $(this).find('.modal-body').addClass('hidden');
- $(this).find('.modal-body.loading-text').removeClass('hidden');
+ me.find('.modal-body').addClass('hidden');
+ me.find('.modal-body.loading-text').removeClass('hidden');
send('user/get', {
user_id: me.data('user_id'),
}).always(function() {
- $(this).find('.modal-body.loading-text').addClass('hidden');
+ me.find('.modal-body.loading-text').addClass('hidden');
}).fail(function(r) {
var error = r.responseText;
@@ -37,13 +37,9 @@ jQuery(function($) {
me.find('.modal-body.loading-done').removeClass('hidden');
});
- });
-
- $('#user-edit-dialog').on('shown.bs.modal', function() {
+ }).on('shown.bs.modal', function() {
$('#user-edit-name').focus();
- });
-
- $('#user-edit-dialog').on('hide.bs.modal', function() {
+ }).on('hide.bs.modal', function() {
// clear highlight
$('#users .active').removeClass('active');
});