* [refac bug #53278] blur submit button.

This commit is contained in:
wangyidong
2024-07-31 17:55:14 +08:00
committed by 刘刚
parent 5f5d621aef
commit cd417b394a
+6 -1
View File
@@ -81,7 +81,12 @@ window.safeSubmit = function(e)
zui.Modal.alert(data.message);
if($('.captchaBox').length == 1) refreshCaptcha($('.captchaBox .input-group .input-group-addon img'));
clearTimeout(timeoutID);
$('#submit').removeAttr('disabled');
$('#submit').removeAttr('disabled').trigger('blur');
waitDom('.modal.show .btn.primary', function()
{
let $this = $(this);
setTimeout(function(){$this.trigger('focus')}, 200);
})
return false;
}