Undo fix for #244. Fixes #521 - E-mail validation fires immediately when text is in the field.

This commit is contained in:
Jörn Zaefferer
2012-10-03 18:41:25 +02:00
parent 64e806b462
commit 5934f4d450

2
jquery.validate.js vendored
View File

@@ -236,7 +236,7 @@ $.extend($.validator, {
onkeyup: function(element, event) {
if ( event.which === 9 && this.elementValue(element) === '' ) {
return;
} else if ( element.name in this.submitted || element === this.lastActive ) {
} else if ( element.name in this.submitted || element === this.lastElement ) {
this.element(element);
}
},