Changeset 26159
- Timestamp:
- 11/14/2013 05:42:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-ajax-response.js
r21592 r26159 25 25 if ( !jQuery( 'supplemental', child ).children().each( function() { 26 26 response.supplemental[this.nodeName] = jQuery(this).text(); 27 } ).size() ) { response.supplemental = false }27 } ).size() ) { response.supplemental = false; } 28 28 response.errors = []; 29 29 if ( !jQuery('wp_error', child).each( function() { … … 55 55 validateForm: function( selector ) { 56 56 selector = jQuery( selector ); 57 return !wpAjax.invalidateForm( selector.find('.form-required').filter( function() { return jQuery('input:visible', this).val() == ''; } ) ).size();57 return !wpAjax.invalidateForm( selector.find('.form-required').filter( function() { return jQuery('input:visible', this).val() === ''; } ) ).size(); 58 58 } 59 59 }, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'An unidentified error has occurred.' } );
Note: See TracChangeset
for help on using the changeset viewer.