Added missing JSON parsing
authorAlexander Ebert <ebert@woltlab.com>
Fri, 8 Jul 2016 16:34:28 +0000 (18:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 8 Jul 2016 16:34:28 +0000 (18:34 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js

index 21e7ab98af632eea8239cf1d6e7c13ead46c43f2..0a07f3ec2806192cb8559afcf1e594d8959f9117 100644 (file)
@@ -147,7 +147,7 @@ define(['Dictionary', 'WoltLab/Wcf/Ui/Page/Search/Handler'], function(Dictionary
                 * @protected
                 */
                _setAvailableBoxPositions: function() {
-                       var supportedPositions = elData(_boxController.options[_boxController.selectedIndex], 'supported-positions');
+                       var supportedPositions = JSON.parse(elData(_boxController.options[_boxController.selectedIndex], 'supported-positions'));
                        
                        var option;
                        for (var i = 0, length = _position.childElementCount; i < length; i++) {