]> git.datanom.net - qtadmin.git/commitdiff
reload page when session expire
authorMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 18:57:42 +0000 (20:57 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 18:57:42 +0000 (20:57 +0200)
js/timer.js

index 2dee4a40af3d15d99373a08ff112016187bdf4bb..1c2825f77a67de2f34c815a683650bc29a052153 100644 (file)
@@ -10,7 +10,7 @@ function myTimer() {
     if (timeLeft < 0) {
         clearInterval(timerRef);
         location.reload();
-    } else if {
+    } else if (timeLeft < 1) {
         timeLeft = 'Expired';
         document.getElementById("time").style.background = "red";
     }else {
This page took 0.03056 seconds and 5 git commands to generate.