Merge pull request #602 from knoxmic/master

FIX: Autocomplete, missing charcode for correct term
This commit is contained in:
Sam 2013-03-31 23:52:02 -07:00
commit 7043ab906f
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ $.fn.autocomplete = function(options) {
return false; return false;
} }
term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition); term = me.val().substring(completeStart + (options.key ? 1 : 0), caretPosition);
if (e.which > 48 && e.which < 90) { if (e.which >= 48 && e.which <= 90) {
term += String.fromCharCode(e.which); term += String.fromCharCode(e.which);
} else { } else {
if (e.which !== 8) { if (e.which !== 8) {