Fixed issue in toggle initialization
authorMarcel Werk <burntime@woltlab.com>
Wed, 14 Sep 2016 13:38:27 +0000 (15:38 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 14 Sep 2016 13:38:54 +0000 (15:38 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js

index c0a697540a0e8c2c9303f459d3a08a21dffa8b93..978d9ffed982b07ed725efb21a675ecb02d7b0e9 100644 (file)
@@ -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);
                },
                
                /**