Änderungen
keine Bearbeitungszusammenfassung
})(jQuery);
(function($) {
$('.sidebar-division').each(function() {
var divisionLabel divisionHeader = $(this).children('.division-header'); var expandabilityIndicator = '<span class="expandability-indicator">…</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');