summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2012-06-19 23:30:52 +0200
committerportix <none@none>2012-06-19 23:30:52 +0200
commit367216af1bb743b6ad77af4c4bc5568f76c4d5c9 (patch)
treeddc753abf89e44217fc3acb675b359e95b087ef9 /scripts
parent6594721d1f07d744eea01b98075ca2e8afbe069b (diff)
downloaddwb-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.js5
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");