summaryrefslogtreecommitdiff
path: root/skins/vector/vector.js
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
committerPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
commit63601400e476c6cf43d985f3e7b9864681695ed4 (patch)
treef7846203a952e38aaf66989d0a4702779f549962 /skins/vector/vector.js
parent8ff01378c9e0207f9169b81966a51def645b6a51 (diff)
Update to MediaWiki 1.20.2
this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'skins/vector/vector.js')
-rw-r--r--skins/vector/vector.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/skins/vector/vector.js b/skins/vector/vector.js
index cc76b328..8b719e5b 100644
--- a/skins/vector/vector.js
+++ b/skins/vector/vector.js
@@ -1,21 +1,21 @@
-/*
+/**
* Vector-specific scripts
*/
-jQuery( function( $ ) {
- $( 'div.vectorMenu' ).each( function() {
- var self = this;
- $( 'h5:first a:first', this )
+jQuery( function ( $ ) {
+ $( 'div.vectorMenu' ).each( function () {
+ var $el = $( this );
+ $el.find( 'h5:first a:first' )
// For accessibility, show the menu when the hidden link in the menu is clicked (bug 24298)
- .click( function( e ) {
- $( '.menu:first', self ).toggleClass( 'menuForceShow' );
+ .click( function ( e ) {
+ $el.find( '.menu:first' ).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' );
- });
- });
-});
+ .focus( function () {
+ $el.addClass( 'vectorMenuFocus' );
+ } )
+ .blur( function () {
+ $el.removeClass( 'vectorMenuFocus' );
+ } );
+ } );
+} );