1
0
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:
jcorporation 2018-12-03 20:11:00 +00:00
parent c4b8b897db
commit 50c0ea1c4a

View File

@ -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