From: Marcel Werk Date: Sun, 28 Aug 2016 15:55:15 +0000 (+0200) Subject: Fixed handling of preset values in ItemList.js X-Git-Tag: 3.0.0_Beta_1~433 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45bf07292de2812d8887e240f9fb1c5654192626;p=GitHub%2FWoltLab%2FWCF.git Fixed handling of preset values in ItemList.js --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js index 8fc4789d12..c6f6078a43 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js @@ -240,16 +240,16 @@ define(['Core', 'Dictionary', 'Language', 'Dom/Traverse', 'WoltLabSuite/Core/Ui/ list.parentNode.insertBefore(shadow, list); - if (element.nodeName === 'TEXTAREA') { - //noinspection JSUnresolvedVariable - var value, tmp = element.value.split(','); - for (var i = 0, length = tmp.length; i < length; i++) { - value = tmp[i].trim(); - if (value.length) { - values.push(value); - } + //noinspection JSUnresolvedVariable + var value, tmp = element.value.split(','); + for (var i = 0, length = tmp.length; i < length; i++) { + value = tmp[i].trim(); + if (value.length) { + values.push(value); } - + } + + if (element.nodeName === 'TEXTAREA') { var inputElement = elCreate('input'); inputElement.type = 'text'; element.parentNode.insertBefore(inputElement, element);