diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-26 18:33:04 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-02 20:32:07 -0400 |
commit | 456095440425f91028f218748f366bf16e5c7d4b (patch) | |
tree | d335b8799af5456c10d4d3adaaa82bfec8eaff61 /app/assets/javascripts/profile.js.coffee | |
parent | 2313d42b37977afc884a2a2fc7e91180e0acbaf3 (diff) | |
download | gitlab-ce-456095440425f91028f218748f366bf16e5c7d4b.tar.gz |
Move jQuery enable/disable extensions to extensions/jquery
Removes redundant enableButton/disableButton extensions, and adds specs
for the jQuery extensions.
Diffstat (limited to 'app/assets/javascripts/profile.js.coffee')
-rw-r--r-- | app/assets/javascripts/profile.js.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/profile.js.coffee b/app/assets/javascripts/profile.js.coffee index de356fbec77..40459a9a155 100644 --- a/app/assets/javascripts/profile.js.coffee +++ b/app/assets/javascripts/profile.js.coffee @@ -12,11 +12,11 @@ class @Profile $(this).find('.update-failed').hide() $('.update-username form').on 'ajax:complete', -> - $(this).find('.btn-save').enableButton() + $(this).find('.btn-save').enable() $(this).find('.loading-gif').hide() $('.update-notifications').on 'ajax:complete', -> - $(this).find('.btn-save').enableButton() + $(this).find('.btn-save').enable() $('.js-choose-user-avatar-button').bind "click", -> |