* Finish task #57894.

This commit is contained in:
tianshujie
2022-06-21 11:15:16 +08:00
parent 51e9deda40
commit 30bff5f852
17 changed files with 273 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
$('#submit').click(function()
{
$(this).attr('disabled', true);
url = createLink('user', 'forgetPassword');
$.post(url, {account: $('#account').val(), email: $('#email').val()}, function(data)
{
$('#submit').attr('disabled', false);
bootbox.alert(data.message);
}, 'json')
})
+12
View File
@@ -0,0 +1,12 @@
$(function()
{
if(expired)
{
setInterval(function()
{
var time = $('#time').text();
if(time == 0) window.location.href = $('.alert .btn').attr('href');
$('#time').text(time-1 <=0 ? 0 : time -1);
}, 1000);
}
})