From c9baf9063a32e324257d33e4d25d8bdde164db30 Mon Sep 17 00:00:00 2001 From: sebastian Date: Wed, 7 Apr 2010 16:12:17 +0000 Subject: [PATCH] #2361 HTML UI: 'Now Playing' doesn't refresh at the end of a playlist --- .../htmlUI/var/templates/script/progressbar.js.tpl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/campcaster/src/modules/htmlUI/var/templates/script/progressbar.js.tpl b/campcaster/src/modules/htmlUI/var/templates/script/progressbar.js.tpl index 1945be868..3b89c29a3 100644 --- a/campcaster/src/modules/htmlUI/var/templates/script/progressbar.js.tpl +++ b/campcaster/src/modules/htmlUI/var/templates/script/progressbar.js.tpl @@ -3,10 +3,8 @@ {literal} // play-progress-bar object -function plPrBar() { - this.debug = true; - plPrBar_debug('new plPrBar'); - +function plPrBar() { + plPrBar_debug('new plPrBar'); // methods: this.init = plPrBar_init; this.tick = plPrBar_tick; @@ -94,7 +92,8 @@ function plPrBar_init(current, c_tit, c_pltit, c_eh, c_ei, c_es, c_dh, c_di, c_d function plPrBar_tick() { //plPrBar_debug('tick:' + this.c_remaining.getTime()); if (this.c_remaining.getTime() <= this.interval*2) { - window.clearInterval(progress); + window.clearInterval(this.progress); + this.request() return; } this.c_elapsed.setTime(this.c_elapsed.getTime() + this.interval);