From d2640a25945d95db8a6d0486fb8868ba9df02ece Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 14 Sep 2016 15:38:27 +0200 Subject: [PATCH] Fixed issue in toggle initialization --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js | 3 +++ 1 file changed, 3 insertions(+) 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); }, /** -- 2.20.1