Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bugfix with interval

  • Loading branch information...
commit 2e238cb398d6ff2c3bbfd48298903158a0dadcce 1 parent 19002da
@dustball dustball authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 static/signin.js
View
5 static/signin.js
@@ -221,6 +221,9 @@ function refreshPage() {
$.ajax({
url: '/',
success: function(data) {
+ if (window.oldint) {
+ clearTimeout(window.oldint);
+ }
$('#body').html(data);
}
});
@@ -228,6 +231,6 @@ function refreshPage() {
}
$(document).ready(function() {
- setInterval(refreshPage,15 * 60 * 1000);
+ window.oldint = setInterval(refreshPage,15 *60* 1000);
auto_reset();
});
Please sign in to comment.
Something went wrong with that request. Please try again.