MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
mw.loader.using('jquery.makeCollapsible').done(function () { | |||
// Target sidebar portlets (each "box" in the sidebar) | |||
$('#p-navigation, #p-tb, #p-wiki-navigation, #p-coll-print_export').addClass('mw-collapsible mw-collapsed'); | |||
// Auto-apply collapsible behavior | |||
$('.mw-collapsible').makeCollapsible(); | |||
}); | }); |
Revision as of 14:20, 20 August 2025
/* Any JavaScript here will be loaded for all users on every page load. */ mw.loader.using('jquery.makeCollapsible').done(function () { // Target sidebar portlets (each "box" in the sidebar) $('#p-navigation, #p-tb, #p-wiki-navigation, #p-coll-print_export').addClass('mw-collapsible mw-collapsed'); // Auto-apply collapsible behavior $('.mw-collapsible').makeCollapsible(); });