90
edits
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
* dependency hasn't arrived yet it'll make sure those are loaded before this. | * dependency hasn't arrived yet it'll make sure those are loaded before this. | ||
*/ | */ | ||
$( document ).ready( function() { | |||
var $collapseglobal = $('#collapse-global'); | |||
if ( $collapseglobal.length > 0 ) { | |||
$collapseglobal.html(''); | |||
$('<a class="mediawiki-button">Expand/Collapse All</a>').on('click', function() { | |||
$('.mw-collapsible-toggle a').trigger('click.mw-collapsible'); | |||
}).appendTo($collapseglobal); | |||
} | |||
}); | |||
/* global mw, $, importStylesheet, importScript */ | /* global mw, $, importStylesheet, importScript */ | ||
Line 243: | Line 255: | ||
// } | // } | ||
//}); | //}); | ||