]> git.datanom.net - qtadmin.git/blobdiff - js/timer.js
reload page when session expire
[qtadmin.git] / js / timer.js
index 54e9700699b04e9afe42e097aad065349013f17e..5760242463e46040948dfa3b3d205f4dccd74dcc 100644 (file)
@@ -8,9 +8,10 @@ function myTimer() {
     var timeLeft = Math.round(((expire % 86400000) % 3600000) / 60000);
 
     if (timeLeft < 0) {
-        timeLeft = 'Expired';
-        document.getElementById("time").style.background = "red";
+        /*timeLeft = 'Expired';
+        document.getElementById("time").style.background = "red";*/
         clearInterval(timerRef);
+        location.reload();
     } else {
         timeLeft += 1;
         timeLeft = '< ' + timeLeft + ' min';
This page took 0.028469 seconds and 5 git commands to generate.