Improved device filter clearing link.
This commit is contained in:
parent
89204ba6c6
commit
7ee2d03033
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -2030,6 +2030,7 @@
|
||||||
|
|
||||||
function clearSearchInput() {
|
function clearSearchInput() {
|
||||||
Q('SearchInput').value = '';
|
Q('SearchInput').value = '';
|
||||||
|
Q('OnlineCheckBox').checked = false;
|
||||||
onSearchInputChanged();
|
onSearchInputChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2262,7 +2263,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
|
if ((Q('SearchInput').value != '') || (Q('OnlineCheckBox').checked)) {
|
||||||
|
QH('xdevices', '<div style="margin-top:50px;text-align:center"><span style="font-size:30px">' + "No devices" + '</span><br /><br />' + "No devices matching this search." + ' <a onclick=clearSearchInput() style=cursor:pointer>' + "Clear search filter" + '</a></div>');
|
||||||
|
} else {
|
||||||
QH('xdevices', '<div style="margin-top:50px;text-align:center"><span style="font-size:30px">' + "No devices" + '</span><br /><br />' + "Use the desktop version of this website to add devices." + '</div>');
|
QH('xdevices', '<div style="margin-top:50px;text-align:center"><span style="font-size:30px">' + "No devices" + '</span><br /><br />' + "Use the desktop version of this website to add devices." + '</div>');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
QH('xdevices', r);
|
QH('xdevices', r);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3887,7 +3887,7 @@
|
||||||
}
|
}
|
||||||
function disconnectAllKvmFunction() { if (xxdialogMode) return false; for (var nodeid in multiDesktop) { multiDesktop[nodeid].Stop(); } multiDesktop = {}; }
|
function disconnectAllKvmFunction() { if (xxdialogMode) return false; for (var nodeid in multiDesktop) { multiDesktop[nodeid].Stop(); } multiDesktop = {}; }
|
||||||
function onMultiDesktopStateChange(desk, state) { try { QH('skvmid_' + desk.shortid, ["Disconnected", "Connecting...", "Setup...", '', ''][state]); } catch (ex) {} }
|
function onMultiDesktopStateChange(desk, state) { try { QH('skvmid_' + desk.shortid, ["Disconnected", "Connecting...", "Setup...", '', ''][state]); } catch (ex) {} }
|
||||||
function onDeviceSearchChanged(e) { if (e.target.id == 'SearchInput') { Q('KvmSearchInput').value = Q('SearchInput').value; } else { Q('SearchInput').value = Q('KvmSearchInput').value; } mainUpdate(5); }
|
function onDeviceSearchChanged(e) { if (e != null) { if (e.target.id == 'SearchInput') { Q('KvmSearchInput').value = Q('SearchInput').value; } else { Q('SearchInput').value = Q('KvmSearchInput').value; } } mainUpdate(5); }
|
||||||
|
|
||||||
function showMultiDesktopSettings() {
|
function showMultiDesktopSettings() {
|
||||||
QV('d7amtkvm', false);
|
QV('d7amtkvm', false);
|
||||||
|
@ -4606,7 +4606,7 @@
|
||||||
function deviceSort(a, b) { if (a.namel > b.namel) return 1; if (a.namel < b.namel) return -1; return 0; }
|
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 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 onSearchFocus(x) { searchFocus = x; }
|
||||||
function clearDeviceSearch() { Q('KvmSearchInput').value = Q('SearchInput').value = ''; mainUpdate(1); }
|
function clearDeviceSearch() { Q('KvmSearchInput').value = Q('SearchInput').value = ''; Q('DevFilterSelect').value = 0; onOnlineCheckBox(); mainUpdate(1); }
|
||||||
function onMapSearchFocus(x) { mapSearchFocus = x; }
|
function onMapSearchFocus(x) { mapSearchFocus = x; }
|
||||||
function onUserSearchFocus(x) { userSearchFocus = x; }
|
function onUserSearchFocus(x) { userSearchFocus = x; }
|
||||||
function onConsoleFocus(x) { consoleFocus = x; }
|
function onConsoleFocus(x) { consoleFocus = x; }
|
||||||
|
|
Loading…
Reference in New Issue