From c5505c728d00cc677de3a8802f21762f751c6af2 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Thu, 31 May 2018 21:42:39 +0100 Subject: [PATCH] Fix queue pagination --- htdocs/css/mpd.css | 2 -- htdocs/js/mpd.js | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/css/mpd.css b/htdocs/css/mpd.css index 18193e4..77d71dc 100644 --- a/htdocs/css/mpd.css +++ b/htdocs/css/mpd.css @@ -21,12 +21,10 @@ body { width: 104px; } - button { overflow: hidden; } - #browseBreadcrumb { overflow: auto; white-space: nowrap; diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 7636cfb..a2ace6f 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -1000,7 +1000,11 @@ function gotoPage(x,element,event) { if ($('#searchqueuestr').val().length >=3) { doQueueSearch(); } else { - app.setLocation('#/queue/'+pagination); + var mpdtag='Any Tag'; + $('#searchqueuetag > button').each(function() { + if ($(this).hasClass('btn-success')) { mpdtag=$(this).text(); } + }); + app.setLocation('#/queue/'+pagination+'/'+mpdtag+'/'); } break; case "search":