#2361 HTML UI: 'Now Playing' doesn't refresh at the end of a playlist
This commit is contained in:
parent
0f78e887bc
commit
c9baf9063a
|
@ -3,10 +3,8 @@
|
||||||
{literal}
|
{literal}
|
||||||
// play-progress-bar object
|
// play-progress-bar object
|
||||||
|
|
||||||
function plPrBar() {
|
function plPrBar() {
|
||||||
this.debug = true;
|
plPrBar_debug('new plPrBar');
|
||||||
plPrBar_debug('new plPrBar');
|
|
||||||
|
|
||||||
// methods:
|
// methods:
|
||||||
this.init = plPrBar_init;
|
this.init = plPrBar_init;
|
||||||
this.tick = plPrBar_tick;
|
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() {
|
function plPrBar_tick() {
|
||||||
//plPrBar_debug('tick:' + this.c_remaining.getTime());
|
//plPrBar_debug('tick:' + this.c_remaining.getTime());
|
||||||
if (this.c_remaining.getTime() <= this.interval*2) {
|
if (this.c_remaining.getTime() <= this.interval*2) {
|
||||||
window.clearInterval(progress);
|
window.clearInterval(this.progress);
|
||||||
|
this.request()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.c_elapsed.setTime(this.c_elapsed.getTime() + this.interval);
|
this.c_elapsed.setTime(this.c_elapsed.getTime() + this.interval);
|
||||||
|
|
Loading…
Reference in New Issue