From: Alexander Ebert Date: Thu, 2 Jun 2016 13:50:47 +0000 (+0200) Subject: Properly hiding message header during inline edit X-Git-Tag: 3.0.0_Beta_1~1536 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f54854a5860cec3178a56ba370e15458eca53df4;p=GitHub%2FWoltLab%2FWCF.git Properly hiding message header during inline edit --- 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 63ee5681d5..0395356b6a 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js @@ -81,6 +81,7 @@ define( var messageBody = elBySel('.messageBody', element); var messageFooter = elBySel('.messageFooter', element); + var messageHeader = elBySel('.messageHeader', element); this._elements.set(element, { button: button, @@ -88,6 +89,7 @@ define( messageBodyEditor: null, messageFooter: messageFooter, messageFooterButtons: elBySel('.messageFooterButtons', messageFooter), + messageHeader: messageHeader, messageText: elBySel('.messageText', messageBody) }); } @@ -349,7 +351,8 @@ define( this._save(); }).bind(this)); - // hide message options + // hide message header and footer + elHide(elementData.messageHeader); elHide(elementData.messageFooter); var editorElement = elById(id); @@ -384,6 +387,7 @@ define( elShow(elementData.messageBody); elShow(elementData.messageFooter); + elShow(elementData.messageHeader); this._activeElement.classList.remove('jsInvalidQuoteTarget'); this._activeElement = null;