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

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