Fix MWNamespaceTest::testGetTalkExceptions()
[mediawiki.git] / skins / vector / vector.js
blob757f7c8c99b82aef1594cb38521484e923c57968
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 });