mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
Core: Fix more whitespace
This commit is contained in:
@@ -555,14 +555,14 @@ $.extend( $.validator, {
|
||||
.not( ":submit, :reset, :image, :disabled" )
|
||||
.not( this.settings.ignore )
|
||||
.filter( function() {
|
||||
var name = this.name || $( this ).attr("name"); // for contenteditable
|
||||
var name = this.name || $( this ).attr( "name" ); // for contenteditable
|
||||
if ( !name && validator.settings.debug && window.console ) {
|
||||
console.error( "%o has no name assigned", this );
|
||||
}
|
||||
|
||||
// set form expando on contenteditable
|
||||
if (this.hasAttribute("contenteditable")) {
|
||||
this.form = $(this).closest("form")[0];
|
||||
if ( this.hasAttribute( "contenteditable" ) ) {
|
||||
this.form = $( this ).closest( "form" )[0];
|
||||
}
|
||||
|
||||
// select only the first element for each name, and only those with rules specified
|
||||
@@ -614,7 +614,7 @@ $.extend( $.validator, {
|
||||
return element.validity.badInput ? false : $element.val();
|
||||
}
|
||||
|
||||
if (element.hasAttribute( "contenteditable" )) {
|
||||
if ( element.hasAttribute( "contenteditable" ) ) {
|
||||
val = $element.text();
|
||||
} else {
|
||||
val = $element.val();
|
||||
|
||||
Reference in New Issue
Block a user