Difference between revisions of "MediaWiki:Common.js"
From Theonomy Wiki
(Code to autoexpand the CategoryTree) |
|||
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. */ | ||
− | /* autoexpand the category tree */ | + | /* autoexpand the category tree */ |
$( document ).ready(function() { | $( document ).ready(function() { | ||
$('.CategoryTreeToggle[data-ct-state="collapsed"]').click(); | $('.CategoryTreeToggle[data-ct-state="collapsed"]').click(); | ||
}); | }); |
Revision as of 03:27, 13 July 2020
/* Any JavaScript here will be loaded for all users on every page load. */ /* autoexpand the category tree */ $( document ).ready(function() { $('.CategoryTreeToggle[data-ct-state="collapsed"]').click(); });