Properly hiding message header during inline edit
authorAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jun 2016 13:50:47 +0000 (15:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 3 Jun 2016 15:12:28 +0000 (17:12 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js

index 63ee5681d5b3d4060e2399090f1d324e29af405d..0395356b6ac6dc5dcf3906f9022b57de5c3ea9d5 100644 (file)
@@ -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;