Reset the time-seek indicator also on the web panel

This commit is contained in:
Fabio Manganiello 2019-02-13 18:01:56 +01:00
parent 4503eb31ed
commit 6ac62b0161

View file

@ -63,6 +63,7 @@ $(document).ready(function() {
if ('time' in status) { if ('time' in status) {
if (seekInterval) { if (seekInterval) {
clearInterval(seekInterval); clearInterval(seekInterval);
seekInterval = undefined;
} }
if (typeof status.time === 'string' && status.time.indexOf(':') > -1) { if (typeof status.time === 'string' && status.time.indexOf(':') > -1) {
@ -98,6 +99,11 @@ $(document).ready(function() {
$curTrack.find('.no-track').show(); $curTrack.find('.no-track').show();
$trackSeeker.prop('disabled', true); $trackSeeker.prop('disabled', true);
if (seekInterval) {
clearInterval(seekInterval);
seekInterval = undefined;
}
$('.seek-time').text('-:--'); $('.seek-time').text('-:--');
break; break;