Änderungen

Spring zu: Navigation, suche

MediaWiki:Common.js

389 Bytes hinzugefügt, 20:32, 28. Nov. 2011
keine Bearbeitungszusammenfassung
})(jQuery);
 
(function($) {
$('.sidebar-division').each(function() {
var divisionLabel divisionHeader = $(this).children('.division-header'); var expandabilityIndicator = '<span class="expandability-indicator">&hellip;</span>'; var divisionLabel = divisionHeader.html();
var cookieName = divisionLabel.toLowerCase().replace(/(<([^>]+)>)/ig,"");
$(divisionHeader).append(expandabilityIndicator);
if($.cookie('sidebar-division-state' + cookieName) == 'collapsed') {
$(this).addClass('collapsed').children('.division-header').siblings().hide();
} else {
$(this).find('.expandability-indicator').hide();
}
});
$(this).siblings().slideDown('slow');
$(this).find('.expandability-indicator').fadeOut();
wrapper.removeClass('collapsed');
$.cookie('sidebar-division-state' + cookieName, 'expended');
$(this).siblings().slideUp('slow');
$(this).find('.expandability-indicator').fadeIn();
wrapper.addClass('collapsed');
$.cookie('sidebar-division-state' + cookieName, 'collapsed');
Anonymer Benutzer

Navigationsmenü