WordPress.org

Make WordPress Core

Ticket #16262: garyc40.16262.hotkey.diff

File garyc40.16262.hotkey.diff, 545 bytes (added by garyc40, 9 years ago)

fix prev / next hotkey when navigating to first / last 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 5ca2fb6..4774d4c 100644
    $(document).ready(function(){ 
    495495                                var first_last, l;
    496496
    497497                                first_last = 'next' == which? 'first' : 'last';
    498                                 l = $('.'+which+'.page-numbers');
     498                                l = $('.tablenav-pages .'+which+'-page');
    499499                                if (l.length)
    500500                                        window.location = l[0].href.replace(/\&hotkeys_highlight_(first|last)=1/g, '')+'&hotkeys_highlight_'+first_last+'=1';
    501501                        }