Changeset 33657
- Timestamp:
- 08/20/2015 05:53:41 AM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r33655 r33657 410 410 411 411 <tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;"> 412 <?php $this->items = $this->extra_items; $this->display_rows(); ?> 412 <?php 413 $this->items = $this->extra_items; 414 $this->display_rows_or_placeholder(); 415 ?> 413 416 </tbody> 414 417 -
trunk/src/wp-admin/js/edit-comments.js
r33656 r33657 153 153 // In admin-ajax.php, we send back the unix time stamp instead of 1 on success 154 154 delAfter = function( r, settings ) { 155 var total_items_i18n, total, 155 var total_items_i18n, total, animated, animatedCallback, 156 156 response = true === settings.parsed ? {} : settings.parsed.responses[0], 157 157 commentStatus = true === settings.parsed ? '' : response.supplemental.status, … … 334 334 } 335 335 336 theList.get(0).wpList.add( theExtraList.children( ':eq(0)').remove().clone() );336 theList.get(0).wpList.add( theExtraList.children( ':eq(0):not(.no-items)' ).remove().clone() ); 337 337 338 338 refillTheExtraList(); 339 340 animated = $( ':animated' ); 341 animatedCallback = function () { 342 if ( ! $( '#the-comment-list tr:visible' ).length ) { 343 theList.get(0).wpList.add( theExtraList.find( '.no-items' ).clone() ); 344 } 345 }; 346 347 if ( animated.length ) { 348 animated.promise().done( animatedCallback ); 349 } else { 350 animatedCallback(); 351 } 339 352 }; 340 353
Note: See TracChangeset
for help on using the changeset viewer.