]> git.datanom.net - qtadmin.git/commitdiff
reload page when session expire
authorMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 18:46:26 +0000 (20:46 +0200)
committerMichael Rasmussen <mir@datanom.net>
Wed, 3 Jun 2015 18:46:26 +0000 (20:46 +0200)
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.031197 seconds and 5 git commands to generate.