Skip to content

Instantly share code, notes, and snippets.

@philcrump
Created April 17, 2013 22:25
Show Gist options
  • Save philcrump/5408270 to your computer and use it in GitHub Desktop.
Save philcrump/5408270 to your computer and use it in GitHub Desktop.
Custom Mediawiki Vector CollapsibleNav Menus.
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