From 022a0469d737871d058323ea4a615e9721d03eeb Mon Sep 17 00:00:00 2001 From: jcorporation Date: Sat, 29 Sep 2018 19:47:00 +0100 Subject: [PATCH] Fix: update searchstr on reload --- htdocs/js/mympd.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/js/mympd.js b/htdocs/js/mympd.js index f144814..f2a2d47 100644 --- a/htdocs/js/mympd.js +++ b/htdocs/js/mympd.js @@ -260,7 +260,10 @@ function appRoute() { doSetFilterLetter('BrowseFilesystemFilter'); } else if (app.current.app == 'Search') { - document.getElementById('searchstr').focus(); + var searchstrEl = document.getElementById('searchstr'); + searchstrEl.focus(); + if (searchstrEl.value == '' && app.current.search != '') + searchstrEl.value = app.current.search; if (app.last.app != app.current.app) { if (app.current.search != '') document.getElementById('SearchList').getElementsByTagName('tbody')[0].innerHTML=