From: Alexander Ebert Date: Thu, 5 Jan 2017 12:26:53 +0000 (+0100) Subject: Fixed insert order of attachment list X-Git-Tag: 3.0.0~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e95fd2e6eec96fd5584ca8c899f19e2657ed863;p=GitHub%2FWoltLab%2FWCF.git Fixed insert order of attachment list --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js index 966576ad9f..780c2bfa87 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js @@ -527,8 +527,10 @@ define( //noinspection JSUnresolvedVariable DomUtil.setInnerHtml(element, data.returnValues.attachmentList); + var node; while (element.childNodes.length) { - elementData.messageFooter.appendChild(element.childNodes[0]); + node = element.childNodes[element.childNodes.length - 1]; + elementData.messageFooter.insertBefore(node, elementData.messageFooter.firstChild); } }