isOpen: this._containers[containerID].data('isOpen'),
target: $target
};
+
+ // add 'jsCollapsed' CSS class
+ if (!this._containers[containerID].data('isOpen')) {
+ $('#' + containerID).addClass('jsCollapsed');
+ }
},
/**
});
this._proxy.sendRequest();
+ // toogle 'jsCollapsed' CSS class
+ $('#' + $containerID).toggleClass('jsCollapsed');
+
// set spinner for current button
this._exchangeIcon($button);
},
this._containerData[$containerID].target.hide();
}
+ // toogle 'jsCollapsed' CSS class
+ $('#' + $containerID).toggleClass('jsCollapsed');
+
// update container data
this._containerData[$containerID].isOpen = ($newState === 'open' ? true : false);
}