mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-28 08:05:53 -05:00
Added clear device filter link when no devices found.
This commit is contained in:
parent
a2c2816f5b
commit
89204ba6c6
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
|
<meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="format-detection" content="telephone=no" />
|
<meta name="format-detection" content="telephone=no" />
|
||||||
<link type="image/x-icon" href="{{{domainurl}}}favicon.ico" rel="shortcut icon"/>
|
<link type="image/x-icon" href="{{{domainurl}}}favicon.ico" rel="shortcut icon" />
|
||||||
<link keeplink=1 type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
|
<link keeplink=1 type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
|
||||||
<link type="text/css" href="styles/ol.css" media="screen" rel="stylesheet" title="CSS" />
|
<link type="text/css" href="styles/ol.css" media="screen" rel="stylesheet" title="CSS" />
|
||||||
<link type="text/css" href="styles/ol3-contextmenu.min.css" media="screen" rel="stylesheet" title="CSS" />
|
<link type="text/css" href="styles/ol3-contextmenu.min.css" media="screen" rel="stylesheet" title="CSS" />
|
||||||
@ -3610,7 +3610,7 @@
|
|||||||
if (sort == 3) {
|
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>';
|
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 {
|
} 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 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 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
Block a user