diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2018-02-13 20:03:42 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2018-02-13 20:03:42 +0000 |
commit | 91002b129a6e8644c288bd3174eae8942285ca81 (patch) | |
tree | 4c06c4ed347086ee61ad6840dfaff1bc856470e9 /app/assets/javascripts | |
parent | 7f8abaebd91b190b5239a2f302277ace139aa2e6 (diff) | |
parent | ec43aaee0f336fb6c0863593ecc408beb175e568 (diff) | |
download | gitlab-ce-91002b129a6e8644c288bd3174eae8942285ca81.tar.gz |
Merge branch 'remove-unused-code-profile' into 'master'
Remove unused code in profile.js
See merge request gitlab-org/gitlab-ce!17009
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/profile/profile.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/app/assets/javascripts/profile/profile.js b/app/assets/javascripts/profile/profile.js index e116ee23601..930f0fb381e 100644 --- a/app/assets/javascripts/profile/profile.js +++ b/app/assets/javascripts/profile/profile.js @@ -33,9 +33,6 @@ import flash from '../flash'; $('input[name="user[multi_file]"]').on('change', this.setNewRepoCookie); $('#user_notification_email').on('change', this.submitForm); $('#user_notified_of_own_activity').on('change', this.submitForm); - $('.update-username').on('ajax:before', this.beforeUpdateUsername); - $('.update-username').on('ajax:complete', this.afterUpdateUsername); - $('.update-notifications').on('ajax:success', this.onUpdateNotifs); this.form.on('submit', this.onSubmitForm); } @@ -48,21 +45,6 @@ import flash from '../flash'; return this.saveForm(); } - beforeUpdateUsername() { - $('.loading-username', this).removeClass('hidden'); - } - - afterUpdateUsername() { - $('.loading-username', this).addClass('hidden'); - $('button[type=submit]', this).enable(); - } - - onUpdateNotifs(e, data) { - return data.saved ? - flash(__('Notification settings saved'), 'notice') : - flash(__('Failed to save new settings')); - } - saveForm() { const self = this; const formData = new FormData(this.form[0]); |