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

index 5760242463e46040948dfa3b3d205f4dccd74dcc..092213d7b21653f15c367cabcb2063bc89dc7ca3 100644 (file)
@@ -7,13 +7,13 @@ function myTimer() {
     var expire = timeStart - elapsed;
     var timeLeft = Math.round(((expire % 86400000) % 3600000) / 60000);
 
-    if (timeLeft < 0) {
+    if (timeLeft < 1) {
         /*timeLeft = 'Expired';
         document.getElementById("time").style.background = "red";*/
         clearInterval(timerRef);
         location.reload();
     } else {
-        timeLeft += 1;
+        //timeLeft += 1;
         timeLeft = '< ' + timeLeft + ' min';
     }
 
This page took 0.031053 seconds and 5 git commands to generate.