* Finish task #57894.
This commit is contained in:
@@ -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')
|
||||
})
|
||||
@@ -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);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user