From 8fb72b08161fa7e1cae93f51894e69c93afeb85e Mon Sep 17 00:00:00 2001
From: Paul Duncan <pabs@pablotron.org>
Date: Thu, 26 May 2016 02:53:54 -0400
Subject: fix user-edit loading text

---
 data/assets/js/admin/dialogs/user-edit.js | 14 +++++---------
 1 file 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');
   });
-- 
cgit v1.2.3