From edf559d3b6a45e17c053002dddeefc7346b69dde Mon Sep 17 00:00:00 2001 From: aj07mm Date: Tue, 15 Apr 2014 15:55:24 -0300 Subject: [PATCH 1/2] words --- jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.autocomplete.js b/jquery.autocomplete.js index 497a80a..f4c918a 100644 --- a/jquery.autocomplete.js +++ b/jquery.autocomplete.js @@ -238,7 +238,7 @@ $.Autocompleter = function(input, options) { } progress += seperator; }); - words[wordAt] = v; + words[words.length-1] = v; // TODO this should set the cursor to the right position, but it gets overriden somewhere //$.Autocompleter.Selection(input, progress + seperator, progress + seperator); v = words.join( options.multipleSeparator ); From 0932f5b02477b6732086d879dd0ba60190210e0f Mon Sep 17 00:00:00 2001 From: aj07mm Date: Tue, 15 Apr 2014 15:56:17 -0300 Subject: [PATCH 2/2] words[words.length-1] = v on line 241, bug of click on IE --- jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.autocomplete.js b/jquery.autocomplete.js index f4c918a..b398805 100644 --- a/jquery.autocomplete.js +++ b/jquery.autocomplete.js @@ -238,7 +238,7 @@ $.Autocompleter = function(input, options) { } progress += seperator; }); - words[words.length-1] = v; + words[words.length-1] = v; // TODO this should set the cursor to the right position, but it gets overriden somewhere //$.Autocompleter.Selection(input, progress + seperator, progress + seperator); v = words.join( options.multipleSeparator );