]> git.datanom.net - qtadmin.git/commitdiff
Fix timer
authorMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 23:24:44 +0000 (01:24 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 23:24:44 +0000 (01:24 +0200)
js/timer.js

index d21a4871cc7db2167b3b8de8349fe072b701620f..f68f0841f11d279fd19defce6ff5ccd026569796 100644 (file)
@@ -22,7 +22,7 @@ function myTimer() {
             document.getElementById("timer").innerHTML = timeLeft;
         }
     } else {
-        if (timeLeft < last || last == -1) {
+        if ((timeLeft < last && timeLeft > 0) || last == -1) {
             last = timeLeft;
             console.log('Session valid < ' + timeLeft);
             timeLeft = '< ' + timeLeft + ' min';
This page took 0.030122 seconds and 5 git commands to generate.