From 32ad899d78c57f0b04ed70db5274bd6636d7795b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 28 Jul 2016 16:57:21 +0200 Subject: [PATCH] Fixed inline editing --- .../files/js/WoltLab/WCF/Ui/Message/InlineEditor.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js index edbbfba01b..4258efa481 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js @@ -488,8 +488,9 @@ define( * @protected */ _showMessage: function(data) { - var elementData = this._elements.get(this._activeElement); - var attachmentLists = elBySelAll('.attachmentThumbnailList, .attachmentFileList', elementData.messageBody); + var activeElement = this._activeElement; + var elementData = this._elements.get(activeElement); + var attachmentLists = elBySelAll('.attachmentThumbnailList, .attachmentFileList', elementData.messageFooter); // set new content //noinspection JSUnresolvedVariable @@ -507,7 +508,7 @@ define( DomUtil.setInnerHtml(element, data.returnValues.attachmentList); while (element.childNodes.length) { - elementData.messageBody.appendChild(element.childNodes[0]); + elementData.messageFooter.appendChild(element.childNodes[0]); } } @@ -531,7 +532,7 @@ define( this._restoreMessage(); - this._updateHistory(this._getHash(this._getObjectId(this._activeElement))); + this._updateHistory(this._getHash(this._getObjectId(activeElement))); UiNotification.show(); -- 2.20.1