Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
trigger keyIn event only if the field value was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek committed Mar 8, 2011
1 parent f30016f commit a95ce10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.smart_autocomplete.js
Expand Up @@ -427,7 +427,7 @@
else {
var current_char_count = $(options.context).val().length;
//check whether the string has modified
if(options.originalCharCount != current_char_count)
if(options.originalCharCount == current_char_count)
return;

//check minimum number of characters are typed
Expand Down

0 comments on commit a95ce10

Please sign in to comment.