MediaWiki:Common.js: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
Grzechooo (talk | contribs)
m Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: jQuery(document).ready(function($){ →‎for collapsible navboxes: toggleHeader = function(index) { ..."
(No difference)

Revision as of 17:41, 24 August 2011

/* Any JavaScript here will be loaded for all users on every page load. */

jQuery(document).ready(function($){
	/* for collapsible navboxes */
	toggleHeader = function(index) {
		$('#navbox-' + index + '#navbox-content-' + index).toggle('slow');
	};
		$('.navbox').each(function(index){
			$(this).attr('id', 'navbox-' + index);
		});
});