From: Marcel Werk Date: Wed, 14 Sep 2016 13:38:27 +0000 (+0200) Subject: Fixed issue in toggle initialization X-Git-Tag: 3.0.0_Beta_1~169 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2640a25945d95db8a6d0486fb8868ba9df02ece;p=GitHub%2FWoltLab%2FWCF.git Fixed issue in toggle initialization --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js index c0a697540a..978d9ffed9 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js @@ -64,6 +64,9 @@ define(['Core'], function(Core) { }).bind(this)); this._element.addEventListener('change', this._change.bind(this)); + + this._handleElements(this._options.show, this._element.checked); + this._handleElements(this._options.hide, !this._element.checked); }, /**