Add a countdown to license error messages.
Former-commit-id: bba7ccf777c05801731a790351dc9920b1546262
This commit is contained in:
parent
aa0ab53cf3
commit
fa7cdc020b
|
@ -163,12 +163,21 @@ $(document).ready (function () {
|
||||||
background: "black"
|
background: "black"
|
||||||
},
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
setTimeout(function(){
|
var remaining = 30;
|
||||||
$("#spinner_ok").hide();
|
|
||||||
|
// Timeout counter.
|
||||||
|
var count = function() {
|
||||||
|
if (remaining > 0) {
|
||||||
|
$("#license_error_remaining").text(remaining);
|
||||||
|
remaining -= 1;
|
||||||
|
} else {
|
||||||
|
$("#license_error_remaining").hide();
|
||||||
$("#ok_buttom").show();
|
$("#ok_buttom").show();
|
||||||
},
|
clearInterval(count);
|
||||||
30000
|
}
|
||||||
);
|
}
|
||||||
|
|
||||||
|
setInterval(count, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue