Fixed device search clear button update, #2955
Ylian Saint-Hilaire committed
Jul 28, 2021 at 15:40 UTC
05cf886673553c9b217c2772d0628af8fde402a2
2 files changed
+4
-4
views/default-mobile.handlebars
+2
-2
@@ -683,7 +683,7 @@
683
<div id=xdevicesBar style="position:absolute;overflow-y:auto;height:34px;left:0;right:0;bottom:0px;background-color:#aaa;color:black">
684
<div style="margin:4px">
685
<span style="width:20px;display:inline-block;text-align:center;cursor:pointer;font-size:16px" onclick=clearSearchInput()><b>X</b></span>
686
- <input id=SearchInput autocomplete=off type=search placeholder=Filter onchange=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) style="padding:2px;margin:0;height:20px;background-color:#FFF" />
686
+ <input id=SearchInput autocomplete=off type=search placeholder=Filter onchange=onDeviceSearchChanged(event) onclick=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) style="padding:2px;margin:0;height:20px;background-color:#FFF" />
687
<label class=noselect><input type=checkbox id=RealNameCheckBox onclick=onRealNameCheckBox() />OS Name</label>
688
<label class=noselect><input type=checkbox id=OnlineCheckBox onclick=onOnlineCheckBox(event) />Online</label>
689
</div>
@@ -2672,7 +2672,7 @@
2672
}
2673
2674
function onDeviceSearchChanged(e) {
2675
- onSearchInputChanged();
2675
+ setTimeout(function () { onSearchInputChanged(); }, 10);
2676
}
2677
2678
function clearSearchInput() {
views/default.handlebars
+2
-2
@@ -266,7 +266,7 @@
266
<img style="cursor:pointer;margin-top:4px;display:none" title="Expand All" id="ExpandAllButton" src="images/icon-expand.png" loading=lazy width=9 height=11 onclick="cmexpandaction(1)" />
267
<input type="button" id="SelectAllButton" onclick="selectallButtonFunction();" value="Select All" />
268
<input type=button id=GroupActionButton disabled="disabled" value="Group Action" onclick=groupActionFunction() />
269
- <input id=SearchInput type=search autocomplete=off placeholder=Filter onchange=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) onfocus=onSearchFocus(1) onblur=onSearchFocus(0) />
269
+ <input id=SearchInput type=search autocomplete=off placeholder=Filter onchange=onDeviceSearchChanged(event) onclick=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) onfocus=onSearchFocus(1) onblur=onSearchFocus(0) />
270
<span id=SearchInputClearButton style="display:none;position:relative"><img src="images/x16.png" type="button" onclick="clearDeviceSearch()" style="position:absolute;cursor:pointer;left:-18px;top:-8px" srcset="images/x32.png 2x"/></span>
271
<select id=DevFilterSelect onchange=onOnlineCheckBox(event) title="Device Filter">
272
<option value=0>All</option>
@@ -290,7 +290,7 @@
290
<input type="button" onclick="disconnectAllKvmFunction()" value="Disconnect All" />
291
<label><input type="checkbox" id="autoConnectDesktopCheckbox" onclick="autoConnectDesktops(event)" title="Automatic connect" />Auto </label>
292
<input type="button" onclick="showMultiDesktopSettings()" value="Settings" />
293
- <input id=KvmSearchInput type=search placeholder=Filter onchange=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) autocomplete=off onfocus=onSearchFocus(1) onblur=onSearchFocus(0) />
293
+ <input id=KvmSearchInput type=search placeholder=Filter onchange=onDeviceSearchChanged(event) onclick=onDeviceSearchChanged(event) onkeyup=onDeviceSearchChanged(event) autocomplete=off onfocus=onSearchFocus(1) onblur=onSearchFocus(0) />
294
<span id=KvmSearchInputClearButton style="display:none;position:relative"><img src="images/x16.png" type="button" onclick="clearDeviceSearch()" style="position:absolute;cursor:pointer;left:-18px;top:-8px" srcset="images/x32.png 2x" /></span>
295
</td>
296
<td id=devMapToolbar class=style14 style="display:none">