Make WordPress Core

Ticket #15908: garyc40-15908-rev3.patch

File garyc40-15908-rev3.patch, 1.7 KB (added by garyc40, 15 years ago)

fixed quick edit's height when editing a long comment

  • 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..699e780 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
    commentReply = { 
    351354                        $('#replyhead, #replybtn', editRow).hide();
    352355
    353356                        h = c.height();
    354                         if ( h > 220 )
    355                                 if ( $.browser.msie )
    356                                         $('#replycontainer, #replycontent', editRow).height(h-105);
    357                                 else
    358                                         $('#replycontainer', editRow).height(h-105);
    359 
     357                        if ( h > 220 ) {
     358                                $('#replycontainer, #replycontent', editRow).height(h-104);     
     359                        }
    360360                        c.after( editRow ).fadeOut('fast', function(){
    361361                                $('#replyrow').fadeIn(300, function(){ $(this).show() });
    362362                        });
  • 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);