Changed search clear button to only FireFox.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-18 14:42:39 -08:00
parent 9d0c667d51
commit 12c9a11b04

View File

@ -4819,7 +4819,7 @@
function onSearchInputChanged() { function onSearchInputChanged() {
var x = Q('SearchInput').value.toLowerCase().trim(); putstore('_search', Q('SearchInput').value); var x = Q('SearchInput').value.toLowerCase().trim(); putstore('_search', Q('SearchInput').value);
QV('SearchInputClearButton', x != ''); QV('SearchInputClearButton', (x != '') && (navigator.userAgent.indexOf('Firefox') >= 0));
var userSearch = null, ipSearch = null, groupSearch = null, tagSearch = null, agentTagSearch = null, wscSearch = null; var userSearch = null, ipSearch = null, groupSearch = null, tagSearch = null, agentTagSearch = null, wscSearch = null;
if (x.startsWith("user:".toLowerCase())) { userSearch = x.substring("user:".length); } if (x.startsWith("user:".toLowerCase())) { userSearch = x.substring("user:".length); }
else if (x.startsWith("u:".toLowerCase())) { userSearch = x.substring("u:".length); } else if (x.startsWith("u:".toLowerCase())) { userSearch = x.substring("u:".length); }