Created
April 17, 2013 22:25
-
-
Save philcrump/5408270 to your computer and use it in GitHub Desktop.
Custom Mediawiki Vector CollapsibleNav Menus.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edit of 'extensions/Vector/modules/ext.vector.collapsibleNav.js' to customise collapsed/expanded nav-menus. | |
============================================================ - | |
if ( | |
state === 'true' || | |
( state === null && i < 1 ) || | |
( state === null && version === 1 && id === 'p-lang' ) | |
) { | |
============================================================ + | |
if ( | |
// Custom function for expanding by default | |
// Phil Crump 30th May 2012 | |
( state == null && id == 'p-Amateur_Radio') || | |
( state == null && id == 'p-HAB_.28Balloon.29') || | |
( state == null && id == 'p-Misc._Projects') | |
//state === 'true' || | |
//( state === null && i < 1 ) || | |
//( state === null && version === 1 && id === 'p-lang' ) | |
) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment