Commit 1521e2ce authored by Mike Greiling's avatar Mike Greiling

re-enable submit button after username change failure

parent 48b3004b
...@@ -41,15 +41,12 @@ ...@@ -41,15 +41,12 @@
} }
beforeUpdateUsername() { beforeUpdateUsername() {
$('.loading-username').show(); $('.loading-username', this).removeClass('hidden');
$(this).find('.update-success').hide();
return $(this).find('.update-failed').hide();
} }
afterUpdateUsername() { afterUpdateUsername() {
$('.loading-username').hide(); $('.loading-username', this).addClass('hidden');
$(this).find('.btn-save').enable(); $('button[type=submit]', this).enable();
return $(this).find('.loading-gif').hide();
} }
onUpdateNotifs(e, data) { onUpdateNotifs(e, data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment