WordPress.org

Make WordPress Core

Ticket #21334: 21334.10.diff

File 21334.10.diff, 1.4 KB (added by helen, 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, focused_row;
     75                $( 'td.post-title' ).focusin( function(){
     76                        clearTimeout( transitionTimeout );
     77                        focused_row = $(this);
     78                        focused_row.find( '.row-actions' ).addClass( 'visible' );
     79                }).focusout( function () {
     80                        // Tabbing between post title and .row-actions links needs a brief pause, otherwise
     81                        // the .row-actions div gets hidden in transit in some browsers (namely Firefox)
     82                        transitionTimeout = setTimeout( function () {
     83                                focused_row.find( '.row-actions' ).removeClass( 'visible' );
     84                        }, 30 );
     85                });
    7286        },
    7387
    7488        toggle : function(el){
  • wp-admin/css/wp-admin.css

     
    64556455        padding: 2px 0 0;
    64566456}
    64576457
    6458 .mobile .row-actions {
    6459         visibility: visible;
    6460 }
    6461 
    64626458tr:hover .row-actions,
     6459.mobile .row-actions,
     6460.row-actions.visible,
    64636461div.comment-item:hover .row-actions {
    64646462        visibility: visible;
    64656463}