From 43d77690ae1850e471dc895802771f699c9cd1b2 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Thu, 14 Jun 2018 21:04:25 +0100 Subject: [PATCH] Fixed tag selection in search --- htdocs/js/mpd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index b99ea38..698653c 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -195,9 +195,9 @@ app.route=function() { } $('#searchstr2').val(app.current.search); $('#searchtags2 > button').each(function() { - if ($(this).text == app.current.filter) { + if ($(this).text() == app.current.filter) { $(this).removeClass('btn-secondary').addClass('btn-success'); - $('#searchtags2desc').text($(this).text); + $('#searchtags2desc').text($(this).text()); } }); }