Skip to content
代码片段 群组 项目
提交 713a1e28 编辑于 作者: Alfredo Sumaran's avatar Alfredo Sumaran
浏览文件

Merge branch '25829-update-username-button-remains-disabled-upon-failure' into 'master'

Re-enable submit button after username change failure

Closes #25829

See merge request !8332
No related branches found
No related tags found
无相关合并请求
......@@ -41,15 +41,12 @@
}
beforeUpdateUsername() {
$('.loading-username').show();
$(this).find('.update-success').hide();
return $(this).find('.update-failed').hide();
$('.loading-username', this).removeClass('hidden');
}
afterUpdateUsername() {
$('.loading-username').hide();
$(this).find('.btn-save').enable();
return $(this).find('.loading-gif').hide();
$('.loading-username', this).addClass('hidden');
$('button[type=submit]', this).enable();
}
onUpdateNotifs(e, data) {
......
---
title: re-enable change username button after failure
merge_request: 8332
author:
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册