fix filter input #6498 #6507
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Nov 10, 2024 at 17:41 UTC
d44faed29eeecc58aa8363a6df501e831805b98c
1 file changed
+7
-2
views/default3.handlebars
+7
-2
@@ -448,7 +448,13 @@
448
<input type=button class="btn btn-outline-primary me-2 btn-sm" id=SelectAllButton onclick="selectallButtonFunction();" value="Select All" />
449
<input type=button class="btn btn-outline-primary me-2 btn-sm" id=GroupActionButton disabled="disabled" value="Group Action" onclick=groupActionFunction() />
450
<input type=button id=ScrollToTopButton onclick="onDevicesScroll(true);" class="btn btn-outline-primary me-2 mb-1 btn-sm" value="Scroll To Top" />
451
- <input type="text" id=SearchInput class="form-control-sm me-2 btn-sm" style="width: auto;" placeholder="Filter">
451
+ <input type="text" id=SearchInput class="form-control-sm me-2 btn-sm" style="width: auto;" placeholder="Filter" onchange=onDeviceSearchChanged(event) onclick=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) onfocus=onSearchFocus(1) onblur=onSearchFocus(0) title="Filter: user:xxx or u:xxx ip:xxx group:xxx or g:xxx tag:xxx or t: xxx atag:xxx or a:xxx os:xxx amt:xxx desc:xxx wsc:ok wsc:noav wsc:noupdate wsc:nofirewall wsc:any">
452
+ <span id=SearchInputClearButton style="display:none;position:relative">
453
+ <span class="fa-layers fa-fw" role="button" onclick="clearDeviceSearch()" style="position:absolute;left:-25px;top:-15px">
454
+ <i class="fa-solid fa-circle" style="color:var(--bs-secondary-bg)"></i>
455
+ <i class="fa-solid fa-xmark" style="color:var(--bs-body-color)"></i>
456
+ </span>
457
+ </span>
458
<select class="form-select-sm me-2" style="width: auto;" id=DevFilterSelect onchange=onOnlineCheckBox(event) title="Device Filter">
459
<option value=0 selected>All</option>
460
<option value=1>Online</option>
@@ -16636,7 +16642,6 @@
16642
if (event.nodeid) {
16643
var node = getNodeFromId(event.nodeid);
16644
if (node != null) {
16639
- console.log(node);
16645
switch(node.icon){
16646
case 1:
16647
icon = 'fa-computer';