blob: cc76b3282e3b4f062039b298214acccf5d5863ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Vector-specific scripts
*/
jQuery( function( $ ) {
$( 'div.vectorMenu' ).each( function() {
var self = this;
$( 'h5:first a:first', this )
// For accessibility, show the menu when the hidden link in the menu is clicked (bug 24298)
.click( function( e ) {
$( '.menu:first', self ).toggleClass( 'menuForceShow' );
e.preventDefault();
})
// When the hidden link has focus, also set a class that will change the arrow icon
.focus( function() {
$( self ).addClass( 'vectorMenuFocus' );
})
.blur( function() {
$( self ).removeClass( 'vectorMenuFocus' );
});
});
});
|