Tests and fix for focusCleanup with wrapper

This commit is contained in:
jzaefferer
2010-07-14 18:23:08 +02:00
parent c466947ebe
commit 1b464f32b3
2 changed files with 16 additions and 4 deletions

2
jquery.validate.js vendored
View File

@@ -219,7 +219,7 @@ $.extend($.validator, {
// hide error label and remove error class on focus if enabled
if ( this.settings.focusCleanup && !this.blockFocusCleanup ) {
this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass );
this.errorsFor(element).hide();
this.addWrapper(this.errorsFor(element)).hide();
}
},
onfocusout: function(element) {