@@ -177,11 +177,17 @@ $.extend($.fn, {
177177// Custom selectors
178178$ . extend ( $ . expr [ ":" ] , {
179179 // http://jqueryvalidation.org/blank-selector/
180- blank : function ( a ) { return ! $ . trim ( "" + $ ( a ) . val ( ) ) ; } ,
180+ blank : function ( a ) {
181+ return ! $ . trim ( "" + $ ( a ) . val ( ) ) ;
182+ } ,
181183 // http://jqueryvalidation.org/filled-selector/
182- filled : function ( a ) { return ! ! $ . trim ( "" + $ ( a ) . val ( ) ) ; } ,
184+ filled : function ( a ) {
185+ return ! ! $ . trim ( "" + $ ( a ) . val ( ) ) ;
186+ } ,
183187 // http://jqueryvalidation.org/unchecked-selector/
184- unchecked : function ( a ) { return ! $ ( a ) . prop ( "checked" ) ; }
188+ unchecked : function ( a ) {
189+ return ! $ ( a ) . prop ( "checked" ) ;
190+ }
185191} ) ;
186192
187193// constructor for validator
@@ -730,7 +736,7 @@ $.extend( $.validator, {
730736 . attr ( "id" , elementID + "-error" )
731737 . addClass ( this . settings . errorClass )
732738 . html ( message || "" ) ;
733-
739+
734740 // Maintain reference to the element to be placed into the DOM
735741 place = error ;
736742 if ( this . settings . wrapper ) {
@@ -745,7 +751,7 @@ $.extend( $.validator, {
745751 } else {
746752 place . insertAfter ( element ) ;
747753 }
748-
754+
749755 // Link error back to the element
750756 if ( error . is ( "label" ) ) {
751757 // If the error is a label, then associate using 'for'
@@ -754,7 +760,7 @@ $.extend( $.validator, {
754760 // If the element is not a child of an associated label, then it's necessary
755761 // to explicitly apply aria-describedby
756762 $ ( element ) . attr ( "aria-describedby" , error . attr ( "id" ) ) ;
757-
763+
758764 // If this element is grouped, then assign to all elements in the same group
759765 group = this . groups [ element . name ] ;
760766 if ( group ) {
0 commit comments