Changeset 36286
- Timestamp:
- 01/13/2016 04:16:15 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/common.js
r36134 r36286 84 84 .find( 'input:visible' ) 85 85 .change( function() { $( this ).closest( '.form-invalid' ).removeClass( 'form-invalid' ); } ) 86 . size();86 .length; 87 87 }; 88 88 -
trunk/src/wp-admin/js/edit-comments.js
r35615 r36286 482 482 } 483 483 484 if ( ! theExtraList || theExtraList. size() === 0 || theExtraList.children().size()=== 0 ) {484 if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 ) { 485 485 return; 486 486 } -
trunk/src/wp-admin/js/media-upload.js
r28830 r36286 48 48 } 49 49 50 if ( tbWindow. size()) {50 if ( tbWindow.length ) { 51 51 tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); 52 52 $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); -
trunk/src/wp-admin/js/plugin-install.js
r35198 r36286 10 10 W = ( 792 < width ) ? 772 : width - 20; 11 11 12 if ( tbWindow. size()) {12 if ( tbWindow.length ) { 13 13 tbWindow.width( W ).height( H ); 14 14 $( '#TB_iframeContent' ).width( W ).height( H ); -
trunk/src/wp-admin/js/post.js
r36227 r36286 74 74 WPSetThumbnailID = function(id){ 75 75 var field = $('input[value="_thumbnail_id"]', '#list-table'); 76 if ( field. size()> 0 ) {76 if ( field.length > 0 ) { 77 77 $('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text(id); 78 78 } -
trunk/src/wp-includes/js/wp-ajax-response.js
r34114 r36286 25 25 if ( !jQuery( 'supplemental', child ).children().each( function() { 26 26 response.supplemental[this.nodeName] = jQuery(this).text(); 27 } ). size()) { response.supplemental = false; }27 } ).length ) { response.supplemental = false; } 28 28 response.errors = []; 29 29 if ( !jQuery('wp_error', child).each( function() { … … 38 38 response.errors.push( anError ); 39 39 parsed.errors = true; 40 } ). size()) { response.errors = false; }40 } ).length ) { response.errors = false; } 41 41 parsed.responses.push( response ); 42 42 } ); … … 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() === ''; } ) ).length; 58 58 } 59 59 }, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'An unidentified error has occurred.' } ); -
trunk/src/wp-includes/js/wp-lists.js
r36229 r36286 337 337 s = $.extend(_s, this.wpList.settings, s); 338 338 339 if ( !e. size()|| !s.what )339 if ( !e.length || !s.what ) 340 340 return false; 341 341 … … 343 343 old = $('#' + s.what + '-' + s.oldId); 344 344 345 if ( s.id && ( s.id != s.oldId || !old || !old. size()) )345 if ( s.id && ( s.id != s.oldId || !old || !old.length ) ) 346 346 $('#' + s.what + '-' + s.id).remove(); 347 347 348 if ( old && old. size()) {348 if ( old && old.length ) { 349 349 old.before(e); 350 350 old.remove(); … … 359 359 ref = list.find( '#' + s.pos ); 360 360 361 if ( 1 === ref. size())361 if ( 1 === ref.length ) 362 362 ref[ba](e); 363 363 else … … 390 390 e = $(e); 391 391 392 if ( list.wpList && e.parents( '#' + list.id ). size())392 if ( list.wpList && e.parents( '#' + list.id ).length ) 393 393 return; 394 394 395 395 e.find(':input').each( function() { 396 if ( $(this).parents('.form-no-clear'). size())396 if ( $(this).parents('.form-no-clear').length ) 397 397 return; 398 398 … … 438 438 items = $('.list-item:visible', list); 439 439 440 if ( !items. size())440 if ( !items.length ) 441 441 items = $(list).children(':visible'); 442 442
Note: See TracChangeset
for help on using the changeset viewer.