From f19a997633f871740915278607852f3a9f72084b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 8 Mar 2012 18:21:34 +0100 Subject: [PATCH] Hide containers on init --- wcfsetup/install/files/js/WCF.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index c2d3b85642..ee3a0bb2b9 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2803,6 +2803,19 @@ WCF.Collapsible.SimpleRemote = WCF.Collapsible.Remote.extend({ }); }, + /** + * @see WCF.Collapsible.Remote._initContainer() + */ + _initContainer: function(containerID) { + this._super(containerID); + + // hide container on init if applicable + if (!this._containerData[containerID].isOpen) { + this._containerData[containerID].target.hide(); + this._exchangeIcon(this._containerData[containerID].button, WCF.Icon.get('wcf.icon.closed')); + } + }, + /** * Toggles container visibility. * -- 2.20.1