1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-01-13 19:00:37 +00:00

Fix: update searchstr on reload

This commit is contained in:
jcorporation 2018-09-29 19:47:00 +01:00
parent ffb0b72e6e
commit 022a0469d7

View File

@ -260,7 +260,10 @@ function appRoute() {
doSetFilterLetter('BrowseFilesystemFilter'); doSetFilterLetter('BrowseFilesystemFilter');
} }
else if (app.current.app == 'Search') { 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.last.app != app.current.app) {
if (app.current.search != '') if (app.current.search != '')
document.getElementById('SearchList').getElementsByTagName('tbody')[0].innerHTML= document.getElementById('SearchList').getElementsByTagName('tbody')[0].innerHTML=