diff options
author | portix <none@none> | 2012-06-19 23:30:52 +0200 |
---|---|---|
committer | portix <none@none> | 2012-06-19 23:30:52 +0200 |
commit | 367216af1bb743b6ad77af4c4bc5568f76c4d5c9 (patch) | |
tree | ddc753abf89e44217fc3acb675b359e95b087ef9 /scripts | |
parent | 6594721d1f07d744eea01b98075ca2e8afbe069b (diff) | |
download | dwb-367216af1bb743b6ad77af4c4bc5568f76c4d5c9.zip |
Fixing getting wrong searchengine url if action points to the same site; new command download; clean completion labels in command mode
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"); |