aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-26 02:53:54 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-26 02:53:54 -0400
commit8fb72b08161fa7e1cae93f51894e69c93afeb85e (patch)
tree8d28c1f50ab5637546366c4c94118026603f8688 /data/assets/js/admin
parent3c5e821b3cdd1c5a144bf012bada282fffd871a2 (diff)
downloadguff-8fb72b08161fa7e1cae93f51894e69c93afeb85e.tar.bz2
guff-8fb72b08161fa7e1cae93f51894e69c93afeb85e.zip
fix user-edit loading text
Diffstat (limited to 'data/assets/js/admin')
-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');
});