Make WordPress Core

Ticket #21334: 21334.diff

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

update against current

  • wp-admin/js/inline-edit-post.js

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

     
    66406640        visibility: visible;
    66416641}
    66426642
     6643.show-row-actions {
     6644        visibility: visible;
     6645}
     6646
    66436647.row-actions-visible {
    66446648        padding: 2px 0 0;
    66456649}