Changeset 36774
- Timestamp:
- 02/29/2016 03:19:48 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/edit-comments.js
r36286 r36774 287 287 a.click(function( e ){ 288 288 e.preventDefault(); 289 e.stopPropagation(); // ticket #35904 289 290 list.wpList.del(this); 290 291 $('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){ … … 314 315 unapproved = commentRow.hasClass( 'unapproved' ), 315 316 spammed = commentRow.hasClass( 'spam' ), 316 trashed = commentRow.hasClass( 'trash' ); 317 trashed = commentRow.hasClass( 'trash' ), 318 undoing = false; // ticket #35904 317 319 318 320 updateDashboardText( newTotal ); … … 347 349 } 348 350 } 351 352 undoing = true; 349 353 350 354 // user clicked "Spam" … … 482 486 } 483 487 484 if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 ) {488 if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 || undoing ) { 485 489 return; 486 490 }
Note: See TracChangeset
for help on using the changeset viewer.