Make SpecialRecentchangesTest pass
[lhc/web/wiklou.git] / skins / vector / vector.js
1 /*
2 * Vector-specific scripts
3 */
4 jQuery( function( $ ) {
5 var $pCactions = $( '#p-cactions' );
6 $pCactions.find( 'h5 a' )
7 // For accessibility, show the menu when the hidden link in the menu is clicked (bug 24298)
8 .click( function( e ) {
9 $pCactions.find( '.menu' ).toggleClass( 'menuForceShow' );
10 e.preventDefault();
11 })
12 // When the hidden link has focus, also set a class that will change the arrow icon
13 .focus( function() {
14 $pCactions.addClass( 'vectorMenuFocus' );
15 })
16 .blur( function() {
17 $pCactions.removeClass( 'vectorMenuFocus' );
18 });
19 });