MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
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);
});
});