mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-10 16:19:54 +00:00
Fix: isNaN in search
This commit is contained in:
parent
c4b8b897db
commit
50c0ea1c4a
@ -2890,7 +2890,7 @@ function addAllFromBrowseFilesystem() {
|
||||
|
||||
function addAllFromSearchPlist(plist) {
|
||||
var nr = parseInt(document.getElementById('panel-heading-search').innerText);
|
||||
if (nr != NaN && nr > 0) {
|
||||
if (!isNaN(nr) && nr > 0) {
|
||||
if (settings.featAdvsearch)
|
||||
sendAPI({"cmd": "MPD_API_DATABASE_SEARCH_ADV", "data": {"plist": plist, "sort": "", "sortdesc": false, "expression": app.current.search, "offset": 0}});
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user