diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/hints.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/hints.js b/scripts/hints.js index b5e64dc8..acd05a16 100644 --- a/scripts/hints.js +++ b/scripts/hints.js @@ -605,8 +605,11 @@ Object.freeze((function () { var __submitSearchEngine = function (string) { var e = __getActive().element; e.value = string; - if (e.form.submit instanceof Function) + if (e.form.submit instanceof Function) { + if (e.form.getAttribute('action') == '#') + e.form.setAttribute('action', ''); e.form.submit(); + } else { var button = e.form.querySelector("input[type='submit'], button[type='submit']"); __clickElement(button, "click"); |