This commit is contained in:
wangyidong
2024-01-03 15:26:44 +08:00
parent ce239ed0c5
commit 15340b529a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -54,6 +54,7 @@ window.safeSubmit = function(e)
if(timeout) zui.Modal.alert(loginTimeoutTip);
}, 4000);
$('#submit').attr('disabled', 'disabled');
$.get($.createLink('user', 'refreshRandom'), function(rand)
{
if(password != '') password = hasMD5 ? md5(md5(password) + rand) : password,
@@ -77,6 +78,7 @@ 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');
return false;
}
+1 -1
View File
@@ -156,7 +156,7 @@ div
formHidden('referer', $referer),
set::actions(array
(
array('text' => $lang->login, 'id' => 'submit', 'class' => 'primary', 'btnType' => 'submit')
array('text' => $lang->login, 'id' => 'submit', 'class' => 'primary', 'btnType' => 'button')
))
)
)