hate text editing in nano
This commit is contained in:
parent
b1c1175c67
commit
9e7d7f420f
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
};
|
||||
|
||||
$("#user_username").keypress(function(evt) {
|
||||
if(!Validation.username.characters.test(this.value + String.fromCharCode($
|
||||
if(!Validation.username.characters.test(this.value + String.fromCharCode(evt.charCode)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
};
|
||||
|
||||
$("#user_username").keypress(function(evt) {
|
||||
if(!Validation.username.characters.test(this.value + String.fromCharCode($
|
||||
if(!Validation.username.characters.test(this.value + String.fromCharCode(evt.charCode)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue