Ticket #27533: 27533.4.diff
| File 27533.4.diff, 1.4 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/js/edit-comments.js
608 608 ); 609 609 } 610 610 611 if ( typeof commentReply != 'undefined' ) { 611 // Each "Quick Edit" link, open the comment editor 612 $( '#the-comment-list' ).on( 'click', '.edit-comment-inline', function (e) { 613 e.preventDefault(); 612 614 613 // Each "Quick Edit" link, open the comment editor614 $( 'body' ).on( 'click', '.comment .row-actions .quickedit .edit-comment-inline', function (e) {615 e.preventDefault();615 var $el = $( this ); 616 commentReply.open( $el.data( 'comment-id' ), $el.data( 'post-id' ), 'edit' ); 617 } ); 616 618 617 var $el = $( e.currentTarget );618 commentReply.open( $el.data( 'comment-id' ), $el.data( 'post-id' ), 'edit' );619 });619 // Each "Reply" link, open the comment reply 620 $( '#the-comment-list' ).on( 'click', '.reply-comment-inline', function (e) { 621 e.preventDefault(); 620 622 621 // Each "Reply" link, open the comment reply 622 $( 'body' ).on( 'click', '.comment .row-actions .reply .reply-comment-inline', function (e) { 623 e.preventDefault(); 624 625 var $el = $( e.currentTarget ); 626 commentReply.open( $el.data('comment-id'), $el.data('post-id') ); 627 } ); 628 } 623 var $el = $( this ); 624 commentReply.open( $el.data('comment-id'), $el.data('post-id') ); 625 } ); 629 626 }); 630 627 631 628 })(jQuery);