From: Alexander Ebert Date: Thu, 28 Jul 2016 14:57:21 +0000 (+0200) Subject: Fixed inline editing X-Git-Tag: 3.0.0_Beta_1~933 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32ad899d78c57f0b04ed70db5274bd6636d7795b;p=GitHub%2FWoltLab%2FWCF.git Fixed inline editing --- 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();