From 2e95fd2e6eec96fd5584ca8c899f19e2657ed863 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 5 Jan 2017 13:26:53 +0100 Subject: [PATCH] Fixed insert order of attachment list --- .../files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- 2.20.1