Added clear device filter link when no devices found.

This commit is contained in:
Ylian Saint-Hilaire 2020-10-05 12:04:40 -07:00
parent a2c2816f5b
commit 89204ba6c6
2 changed files with 1943 additions and 1936 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3610,7 +3610,7 @@
if (sort == 3) {
r = '<div style="margin:30px">' + "No devices are included in any groups, click on a device's \"Groups\" to add to a group." + '</div>';
} else {
r = '<div style="margin:30px">' + "No devices matching this search." + '</div>';
r = '<div style="margin:30px">' + "No devices matching this search." + ' <a onclick=clearDeviceSearch()>' + "Clear search filter" + '</a></div>';
}
}
@ -4606,6 +4606,7 @@
function deviceSort(a, b) { if (a.namel > b.namel) return 1; if (a.namel < b.namel) return -1; return 0; }
function deviceHostSort(a, b) { if (a.rnamel > b.rnamel) return 1; if (a.rnamel < b.rnamel) return -1; return 0; }
function onSearchFocus(x) { searchFocus = x; }
function clearDeviceSearch() { Q('KvmSearchInput').value = Q('SearchInput').value = ''; mainUpdate(1); }
function onMapSearchFocus(x) { mapSearchFocus = x; }
function onUserSearchFocus(x) { userSearchFocus = x; }
function onConsoleFocus(x) { consoleFocus = x; }