~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-includes/js/wp-ajax-response.js

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-01-24 22:20:08 UTC
  • mfrom: (1.2.31)
  • Revision ID: package-import@ubuntu.com-20140124222008-wgyk0hvmhjkubf9i
Tags: 3.8.1+dfsg-1
* New upstream release.
* Depend on either mysql or mariadb client Closes: #732914

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                                response.supplemental = {};
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() {
30
30
                                        var code = jQuery(this).attr('code'), anError, errorData, formField;
54
54
        },
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.' } );
60
60