Ticket #25627: edit-comments.js.diff
File edit-comments.js.diff, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/edit-comments.js
283 283 var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, ''); 284 284 285 285 if ( wpListsData.indexOf(':trash=1') != -1 || wpListsData.indexOf(':spam=1') != -1 ) 286 $('#undo-' + id).fadeIn(300, function(){ $(this).show() }); 286 $('#undo-' + id).fadeIn(300, function(){ 287 $(this).show() 288 commentReply.doing_action = false; 289 }); 287 290 }); 288 291 }; 289 292 … … 290 293 commentReply = { 291 294 cid : '', 292 295 act : '', 296 doing_action : false, 293 297 294 298 init : function() { 295 299 var row = $('#replyrow'); … … 313 317 if ( $('#the-comment-list #replyrow').length > 0 ) 314 318 commentReply.close(); 315 319 }); 320 321 $('.spam a, .trash a','.row-actions').click(function(){ 322 if (commentReply.doing_action){ 323 return false; 324 }else{ 325 commentReply.doing_action = true; 326 return true; 327 } 328 }); 316 329 317 330 this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || ''; 318 331