mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 13:49:54 -04:00
fix autocomplete charcode '0' and 'z'
This commit is contained in:
parent
5bf3a0eaf3
commit
182f794466
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue