Ticket #35904: 35904.patch
| File 35904.patch, 1.2 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/js/edit-comments.js
286 286 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(){ 291 292 $(this).remove(); … … 313 314 approved = commentRow.hasClass( 'approved' ), 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 ); 319 321 … … 347 349 } 348 350 } 349 351 352 undoing = true; 353 350 354 // user clicked "Spam" 351 355 } else if ( targetParent.is( 'span.spam' ) ) { 352 356 // the comment is currently approved … … 481 485 } 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 } 487 491
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)