diff options
author | Phil Hughes <me@iamphill.com> | 2016-02-29 13:39:29 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-11 09:51:07 +0000 |
commit | f48f51ac7e204aa174effcda7cc79e06e2bbaba0 (patch) | |
tree | 849e1e71d15d398941a62e65f475a62652f75875 /app/assets/javascripts/profile.js.coffee | |
parent | f7da99aef7044592d957df750dcf6e4185c51694 (diff) | |
download | gitlab-ce-f48f51ac7e204aa174effcda7cc79e06e2bbaba0.tar.gz |
Account settings
Closes #13854
Diffstat (limited to 'app/assets/javascripts/profile.js.coffee')
-rw-r--r-- | app/assets/javascripts/profile.js.coffee | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/profile.js.coffee b/app/assets/javascripts/profile.js.coffee index 9110b732adc..59d44c30bee 100644 --- a/app/assets/javascripts/profile.js.coffee +++ b/app/assets/javascripts/profile.js.coffee @@ -4,12 +4,13 @@ class @Profile $('.js-preferences-form').on 'change.preference', 'input[type=radio]', -> $(this).parents('form').submit() - $('.update-username form').on 'ajax:before', -> - $('.loading-gif').show() + $('.update-username').on 'ajax:before', -> + $('.loading-username').show() $(this).find('.update-success').hide() $(this).find('.update-failed').hide() - $('.update-username form').on 'ajax:complete', -> + $('.update-username').on 'ajax:complete', -> + $('.loading-username').hide() $(this).find('.btn-save').enable() $(this).find('.loading-gif').hide() |