| | 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 | }); |