Make WordPress Core

Ticket #21334: 21334.5.diff

File 21334.5.diff, 1.3 KB (added by lessbloat, 11 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        $('td.post-title a').on('focus', function(e){
     75            $(this).parents('.post-title').first().find('.row-actions').addClass('show-row-actions');
     76        }).on('blur', function () {
     77                // Tabbing between post title and .row-actions links needs a breif pause in some browsers
     78                // else the .row-actions div gets hidden in transit
     79                setTimeout( function () {
     80                        $(this).parents('.post-title').first().find('.row-actions').removeClass('show-row-actions');
     81                }, 30 );
     82        });
    7283        },
    7384
    7485        toggle : function(el){
  • wp-admin/css/wp-admin.css

     
    62256225        visibility: visible;
    62266226}
    62276227
     6228.show-row-actions {
     6229        visibility: visible;
     6230}
     6231
    62286232.row-actions-visible {
    62296233        padding: 2px 0 0;
    62306234}