Skip to content

Commit

Permalink
Prevents double HTTP request when auto suggestion is being clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejlew committed Jul 18, 2015
1 parent 0eb4651 commit 2cca71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion img/autosuggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function AutoSuggest(form,elem,uri,autosubmit) {
var ds = document.createElement('span');
var li = document.createElement('li');
var a = document.createElement('a');
if ((dest)&&(this.autosubmit)) {
if ((dest)&&(!this.autosubmit)) {
a.href = dest;
a.innerHTML = word;
li.onclick = function() { me.useSuggestion(); }
Expand Down

0 comments on commit 2cca71a

Please sign in to comment.