X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/4dc7954a21df27ffaf3fdf4078f291f5d91d5e6a..8701688ce44b9ba12b61ec1d3c4d9c5ed2c19f0e:/js/timer.js diff --git a/js/timer.js b/js/timer.js index d21a487..1017271 100644 --- a/js/timer.js +++ b/js/timer.js @@ -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; }