From 6ac62b01611dd62612286c7316bb52aba3d4497f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 13 Feb 2019 18:01:56 +0100 Subject: [PATCH] Reset the time-seek indicator also on the web panel --- platypush/backend/http/static/js/music.mpd.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platypush/backend/http/static/js/music.mpd.js b/platypush/backend/http/static/js/music.mpd.js index adfa96ed6..81e4877f9 100644 --- a/platypush/backend/http/static/js/music.mpd.js +++ b/platypush/backend/http/static/js/music.mpd.js @@ -63,6 +63,7 @@ $(document).ready(function() { if ('time' in status) { if (seekInterval) { clearInterval(seekInterval); + seekInterval = undefined; } if (typeof status.time === 'string' && status.time.indexOf(':') > -1) { @@ -98,6 +99,11 @@ $(document).ready(function() { $curTrack.find('.no-track').show(); $trackSeeker.prop('disabled', true); + if (seekInterval) { + clearInterval(seekInterval); + seekInterval = undefined; + } + $('.seek-time').text('-:--'); break;