znt/module/user/js/resetpassword.ui.js

13 lines
284 B
JavaScript

$(function()
{
if(expired)
{
setInterval(function()
{
var time = $('#time').text();
if(time == 0) window.location.href = $('#redirect').attr('href');
$('#time').text(time - 1 <= 0 ? 0 : time - 1);
}, 1000);
}
})