Skip to content

Commit

Permalink
bugfix: quick search autosubmit support restored
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Oct 1, 2016
1 parent 1fe637d commit 85fcfc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function AutoSuggest(form,elem,uri,autosubmit, onsubmit) {

this.form = form;
this.uri = uri;
this.autosubmit = autosubmit;
this.autosubmit = (autosubmit == 1 || autosubmit == 'true');

//Arrow to store a subset of eligible suggestions that match the user's input
this.eligible = [];
Expand Down Expand Up @@ -195,7 +195,7 @@ function AutoSuggest(form,elem,uri,autosubmit, onsubmit) {
this.form.onsubmit = function () { return false; };
setTimeout("document.getElementById('" + this.form.id + "').onsubmit = function () { return true; }",10);
//Go to search results.
if (this.autosubmit == 1) location.href = gotothisuri;
if (this.autosubmit) location.href = gotothisuri;
if (this.onsubmit !== undefined)
eval(this.onsubmit);
}
Expand Down

0 comments on commit 85fcfc9

Please sign in to comment.