From 6ea6d38bc116410bb5a5c991b66617c0f378102d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 8 Mar 2012 17:17:32 +0100 Subject: [PATCH] Added missing icons and fixed WCF.Collapsible.SimpleRemote --- wcfsetup/install/files/acp/templates/header.tpl | 4 +++- wcfsetup/install/files/js/WCF.js | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index de9895a3c7..5b8ce534c1 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -79,7 +79,9 @@ 'wcf.global.form.edit.success': '{lang}wcf.global.form.edit.success{/lang}' }); WCF.Icon.addObject({ - 'wcf.icon.loading': '{@$__wcf->getPath()}icon/spinner1.svg' + 'wcf.icon.closed': '{@$__wcf->getPath()}icon/closed.svg', + 'wcf.icon.loading': '{@$__wcf->getPath()}icon/spinner1.svg', + 'wcf.icon.opened': '{@$__wcf->getPath()}icon/opened.svg' }); new WCF.Date.Time(); new WCF.Effect.SmoothScroll(); diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 7e56b288d1..c2d3b85642 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2829,6 +2829,17 @@ WCF.Collapsible.SimpleRemote = WCF.Collapsible.Remote.extend({ // exchange icon this._exchangeIcon(this._containerData[$containerID].button, WCF.Icon.get('wcf.icon.' + ($newState === 'open' ? 'opened' : 'closed'))); + + // toggle container + if ($newState === 'open') { + this._containerData[$containerID].target.show(); + } + else { + this._containerData[$containerID].target.hide(); + } + + // update container data + this._containerData[$containerID].isOpen = ($newState === 'open' ? true : false); } }); -- 2.20.1