From: Alexander Ebert Date: Fri, 8 Jul 2016 16:34:28 +0000 (+0200) Subject: Added missing JSON parsing X-Git-Tag: 3.0.0_Beta_1~1233 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28dc4e0d8aeaea5a17afd4cd15d42c7028cd3cb2;p=GitHub%2FWoltLab%2FWCF.git Added missing JSON parsing --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js index 21e7ab98af..0a07f3ec28 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Box/Handler.js @@ -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++) {