]> git.datanom.net - qtadmin.git/blobdiff - js/timer.js
Add change row per page
[qtadmin.git] / js / timer.js
index d21a4871cc7db2167b3b8de8349fe072b701620f..10172712b11080b7d32491cee1e3fb328f804a4c 100644 (file)
@@ -17,14 +17,14 @@ function myTimer() {
         if (timeLeft < last || last == -1) {
             last = timeLeft;
             timeLeft = '< ' + timeLeft + ' min';
-            console.log('Session soon to expire');
+            /*console.log('Session soon to expire');*/
             document.getElementById("time").style.background = "red";
             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);
+            /*console.log('Session valid < ' + timeLeft);*/
             timeLeft = '< ' + timeLeft + ' min';
             document.getElementById("timer").innerHTML = timeLeft;
         }
This page took 0.028175 seconds and 5 git commands to generate.