| 72 | |
| 73 | // Show the 'quick links' section when user tabs into post title triggering focus. |
| 74 | var transitionTimeout, focused_row; |
| 75 | $( 'td.post-title' ).focusin( function(){ |
| 76 | clearTimeout( transitionTimeout ); |
| 77 | focused_row = $(this); |
| 78 | focused_row.find( '.row-actions' ).addClass( 'visible' ); |
| 79 | }).focusout( function () { |
| 80 | // Tabbing between post title and .row-actions links needs a brief pause, otherwise |
| 81 | // the .row-actions div gets hidden in transit in some browsers (namely Firefox) |
| 82 | transitionTimeout = setTimeout( function () { |
| 83 | focused_row.find( '.row-actions' ).removeClass( 'visible' ); |
| 84 | }, 30 ); |
| 85 | }); |