Implement static public Parser::getExternalLinkRel
[lhc/web/wiklou.git] / skins / vector / vector.js
1 /**
2 * Vector-specific scripts
3 */
4 jQuery( function ( $ ) {
5 $( 'div.vectorMenu' ).each( function () {
6 var $el = $( this );
7 $el.find( 'h5:first a:first' )
8 // For accessibility, show the menu when the hidden link in the menu is clicked (bug 24298)
9 .click( function ( e ) {
10 $el.find( '.menu:first' ).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 $el.addClass( 'vectorMenuFocus' );
16 } )
17 .blur( function () {
18 $el.removeClass( 'vectorMenuFocus' );
19 } );
20 } );
21 } );