From df83516086cd293e2074691fcbc77eecdb441674 Mon Sep 17 00:00:00 2001 From: waweic Date: Mon, 26 Feb 2018 17:01:06 +0100 Subject: [PATCH 1/2] Fix jumping time in beets.js Round was used instead of floor --- beetsplug/web/static/beets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/web/static/beets.js b/beetsplug/web/static/beets.js index ec9aae9b3f..51985c183c 100644 --- a/beetsplug/web/static/beets.js +++ b/beetsplug/web/static/beets.js @@ -4,7 +4,7 @@ var timeFormat = function(secs) { return '0:00'; } secs = Math.round(secs); - var mins = '' + Math.round(secs / 60); + var mins = '' + Math.floor(secs / 60); secs = '' + (secs % 60); if (secs.length < 2) { secs = '0' + secs; From 00f61e928130db7e33f9c8fc7652f268d1b0aa73 Mon Sep 17 00:00:00 2001 From: waweic Date: Mon, 26 Feb 2018 21:18:41 +0100 Subject: [PATCH 2/2] Update changelog.rst Add the changelog entry --- docs/changelog.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 3121b33940..afd1ae407c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -65,6 +65,9 @@ Fixes: * Importing a release with multiple release events now selects the event based on the order of your :ref:`preferred` countries rather than the order of release events in MusicBrainz. :bug:`2816` +* :doc:`/plugins/web`: The time display in the web interface would incorrectly jump + at the 30-second mark of every minute. Now, it correctly changes over at zero + seconds. :bug:`2822` For developers: