WordPress.org

Make WordPress Core

Ticket #15908: garyc40-15908-rev2.patch

File garyc40-15908-rev2.patch, 1.2 KB (added by garyc40, 7 years ago)

close all quicktags when commentReply.close()

  • wp-admin/js/edit-comments.dev.js

    diff --git wp-admin/js/edit-comments.dev.js wp-admin/js/edit-comments.dev.js
    index 796ead0..c82e6cf 100644
     
    1 var theList, theExtraList, toggleWithKeyboard = false;
     1var theList, theExtraList, toggleWithKeyboard = false, ed_reply;
    22(function($) {
    33
    44setCommentsList = function() {
    commentReply = { 
    274274                });
    275275
    276276                this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
    277 
     277               
     278                $(listTable).bind('beforeChangePage', function(){
     279                        commentReply.close();
     280                });
    278281        },
    279282
    280283        addEvents : function(r) {
    commentReply = { 
    304307
    305308        close : function() {
    306309                var c;
    307 
     310                ed_reply.edCloseAllTags();
    308311                if ( this.cid ) {
    309312                        c = $('#comment-' + this.cid);
    310313
  • wp-admin/js/list-table.dev.js

    diff --git wp-admin/js/list-table.dev.js wp-admin/js/list-table.dev.js
    index d44e7a7..612c43c 100644
    listTable.init(); 
    155155                if ( paged > listTable.get_total_pages() )
    156156                        paged = listTable.get_total_pages();
    157157
     158                $(listTable).trigger('beforeChangePage');
    158159                listTable.update_rows({'paged': paged}, false, function() {
    159160                        if ( $el.parents('.tablenav.bottom').length )
    160161                                scrollTo(0, 0);