Index: trunk/extensions/Vector/modules/ext.vector.collapsibleNav.js |
— | — | @@ -211,14 +211,14 @@ |
212 | 212 | $(this).attr( 'tabindex', tabIndex++ ); |
213 | 213 | } ); |
214 | 214 | // Toggle the selected menu's class and expand or collapse the menu |
215 | | - $headings |
216 | | - // Make the space and enter keys act as a click |
217 | | - .keydown( function( event ) { |
| 215 | + $( '#mw-panel' ) |
| 216 | + .delegate( 'div.portal:not(.persistent) > h5', 'keydown', function( event ) { |
| 217 | + // Make the space and enter keys act as a click |
218 | 218 | if ( event.which == 13 /* Enter */ || event.which == 32 /* Space */ ) { |
219 | 219 | toggle( $(this) ); |
220 | 220 | } |
221 | 221 | } ) |
222 | | - .mousedown( function() { |
| 222 | + .delegate( 'div.portal:not(.persistent) > h5', 'mousedown', function() { |
223 | 223 | toggle( $(this) ); |
224 | 224 | $(this).blur(); |
225 | 225 | return false; |