summaryrefslogtreecommitdiff
path: root/searx/static
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static')
-rw-r--r--searx/static/themes/simple/src/js/main/search.js3
-rw-r--r--searx/static/themes/simple/src/less/search.less4
2 files changed, 6 insertions, 1 deletions
diff --git a/searx/static/themes/simple/src/js/main/search.js b/searx/static/themes/simple/src/js/main/search.js
index 6ef95f5bf..1fb0a7cb8 100644
--- a/searx/static/themes/simple/src/js/main/search.js
+++ b/searx/static/themes/simple/src/js/main/search.js
@@ -31,10 +31,11 @@
// update status, event listener
updateClearButton();
- cs.addEventListener('click', function () {
+ cs.addEventListener('click', function (ev) {
qinput.value = '';
qinput.focus();
updateClearButton();
+ ev.preventDefault();
});
qinput.addEventListener('keyup', updateClearButton, false);
}
diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less
index a9a00d585..62fda55b7 100644
--- a/searx/static/themes/simple/src/less/search.less
+++ b/searx/static/themes/simple/src/less/search.less
@@ -125,6 +125,10 @@
}
}
+html.no-js #clear_search.hide_if_nojs {
+ display: none;
+}
+
#q,
#send_search {
display: block !important;