From cf78e2e18013c41d9370f42b4d9aaecc1a731f3d Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Fri, 9 Sep 2016 16:22:19 +1000 Subject: [PATCH] Issue #15 - If admin, do not redirect -- stop at 0:00:00. --- views/warningbar.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/views/warningbar.php b/views/warningbar.php index fc26212..e4b9333 100644 --- a/views/warningbar.php +++ b/views/warningbar.php @@ -77,7 +77,12 @@ echo html_writer::tag('style', var missing = this.countdown - elapsed; if (missing <= 0) { clearInterval(this.timer); - location.href = ''; + missing = 0; + } else { this.span.innerHTML = this.text.replace('{{countdown}}', this.seconds2hms(missing));