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