MediaWiki:Minerva.js: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the | /* All JavaScript here will be loaded for users of the Minerva skin */ | ||
/* Collapse the navbox section */ | /* Collapse the navbox section by default */ | ||
$(function() { | $(function() { | ||
if ($(window).width() >= 720) | if ($(window).width() >= 720 && $('.navbox-section:visible').length) | ||
$('.navbox-heading').click(); | $('.navbox-heading').click(); | ||
}); | }); |