WordPress.org

Make WordPress Core

Ticket #21334: 21334.9.diff

File 21334.9.diff, 1.3 KB (added by adamsilverstein, 5 years ago)

fix spaces->tabs, slight inline doc change (name that browser)

  • 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}
  • 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, otherwise
     81                        // the .row-actions div gets hidden in transit in some browsers (namely Firefox)
     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){