Make WordPress Core

Ticket #21334: 21334.7.diff

File 21334.7.diff, 1.4 KB (added by adamsilverstein, 11 years ago)

update against trunk, verified works w/firefox

  • wp-admin/css/wp-admin.css

     
    64646464        visibility: visible;
    64656465}
    64666466
     6467.show-row-actions {
     6468        visibility: visible;
     6469}
     6470
    64676471.row-actions-visible {
    64686472        padding: 2px 0 0;
    64696473}
  • 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( e ){
     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 breif 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){