WordPress.org

Make WordPress Core

Changeset 26159


Ignore:
Timestamp:
11/14/2013 05:42:06 AM (7 years ago)
Author:
nacin
Message:

Fix JSHint errors in the old XML-based ajax response JS.

props OriginalEXE.
fixes #25954.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-ajax-response.js

    r21592 r26159  
    2525                if ( !jQuery( 'supplemental', child ).children().each( function() {
    2626                    response.supplemental[this.nodeName] = jQuery(this).text();
    27                 } ).size() ) { response.supplemental = false }
     27                } ).size() ) { response.supplemental = false; }
    2828                response.errors = [];
    2929                if ( !jQuery('wp_error', child).each( function() {
     
    5555    validateForm: function( selector ) {
    5656        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();
    5858    }
    5959}, 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.