Index: trunk/phase3/skins/vector/vector.js |
— | — | @@ -3,17 +3,17 @@ |
4 | 4 | */ |
5 | 5 | jQuery( function( $ ) { |
6 | 6 | var $pCactions = $( '#p-cactions' ); |
7 | | - // For accessibility, show the menu when the hidden link in the menu is clicked |
8 | | - $pCactions.find( 'h5 a' ).click( function() { |
9 | | - $pCactions.find( '.menu' ).toggleClass( 'menuForceShow' ); |
10 | | - }); |
11 | | - |
12 | | - // When the hidden link has focus, also set a class that will change the arrow icon |
13 | | - $pCactions.find( 'h5 a' ).focus( function () { |
14 | | - $pCactions.addClass( 'vectorMenuFocus' ); |
15 | | - }); |
16 | | - |
17 | | - $pCactions.find( 'h5 a' ).blur( function () { |
18 | | - $pCactions.removeClass( 'vectorMenuFocus' ); |
19 | | - }); |
| 7 | + $pCactions.find( 'h5 a' ) |
| 8 | + // For accessibility, show the menu when the hidden link in the menu is clicked (bug 24298) |
| 9 | + .click( function( e ) { |
| 10 | + $pCactions.find( '.menu' ).toggleClass( 'menuForceShow' ); |
| 11 | + e.preventDefault(); |
| 12 | + }) |
| 13 | + // When the hidden link has focus, also set a class that will change the arrow icon |
| 14 | + .focus( function() { |
| 15 | + $pCactions.addClass( 'vectorMenuFocus' ); |
| 16 | + }) |
| 17 | + .blur( function() { |
| 18 | + $pCactions.removeClass( 'vectorMenuFocus' ); |
| 19 | + }); |
20 | 20 | }); |