WordPress.org

Make WordPress Core

Ticket #21334: 21334.8.diff

File 21334.8.diff, 1.3 KB (added by lessbloat, 5 years ago)
  • wp-admin/js/inline-edit-post.js

     
    6969                        t.revert();
    7070                        $('select[name^="action"]').val('-1');
    7171                });
     72
     73                // Show the 'quick links' section when user tabs into post title triggering focus.
     74                var transitionTimeout;
     75        $( 'td.post-title a' ).focusin( function(){
     76            clearTimeout( transitionTimeout );
     77            $( this ).parents( '.post-title' ).first().find( '.row-actions' ).addClass( 'show-row-actions' );
     78        }).focusout( function () {
     79                        var that = $(this);
     80                        // Tabbing between post title and .row-actions links needs a brief pause in some browsers
     81                        // otherwise the .row-actions div gets hidden in transit
     82                        transitionTimeout = setTimeout( function () {
     83                                that.parents( '.post-title' ).first().find( '.row-actions' ).removeClass( 'show-row-actions' );
     84                        }, 30 );
     85                });
    7286        },
    7387
    7488        toggle : function(el){
  • wp-admin/css/wp-admin.css

     
    64606460}
    64616461
    64626462tr:hover .row-actions,
     6463.show-row-actions,
    64636464div.comment-item:hover .row-actions {
    64646465        visibility: visible;
    64656466}