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));