WordPress.org

Make WordPress Core

Ticket #21334: 21334.6.diff

File 21334.6.diff, 1.4 KB (added by lessbloat, 14 months ago)
  • 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

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