MediaWiki:Common.js: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 19: Line 19:
$(this).find('> ul li:first').removeClass('inactive');
$(this).find('> ul li:first').removeClass('inactive');
$(this).find('> ul li:first').addClass('active');
$(this).find('> ul li:first').addClass('active');
$(this).find('> div:first').show();
$(this).find('> div:first').toggle();
});
});
$('.tabdiv > ul li').each(function() {
$('.tabdiv > ul li').each(function() {
Line 31: Line 31:
$(this).addClass('active');
$(this).addClass('active');
$(this).removeClass('inactive');
$(this).removeClass('inactive');
$(target).show();
$(target).toggle();
return false;
return false;
});
});