From: Alexander Ebert Date: Sun, 16 Jun 2013 17:31:49 +0000 (+0200) Subject: Fixed hiding of message content (e.g. polls) X-Git-Tag: 2.0.0_Beta_4~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7cb374095b7c644c463e9f2982241dc118b9a663;p=GitHub%2FWoltLab%2FWCF.git Fixed hiding of message content (e.g. polls) --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index f016b23c24..85d8f05d8a 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1234,6 +1234,9 @@ WCF.Message.InlineEditor = Class.extend({ var $content = $messageBody.find('.messageText'); this._cache = $content.html(); $content.empty(); + + // hide unrelated content + $content.parent().children('.jsInlineEditorHideContent').hide(); }, /** @@ -1256,6 +1259,9 @@ WCF.Message.InlineEditor = Class.extend({ $messageBody.children('.icon-spinner').remove(); $messageBody.find('.messageText').html(this._cache); + // show unrelated content + $messageBody.find('.jsInlineEditorHideContent').show(); + // revert message options this._container[this._activeElementID].find('.messageOptions').removeClass('forceHidden'); @@ -1332,6 +1338,9 @@ WCF.Message.InlineEditor = Class.extend({ $messageBody.children('span.icon-spinner').remove(); $messageBody.find('.messageText').children().show(); + // show unrelated content + $messageBody.find('.jsInlineEditorHideContent').show(); + if (this._quoteManager) { this._quoteManager.clearAlternativeCKEditor(); } @@ -1411,6 +1420,9 @@ WCF.Message.InlineEditor = Class.extend({ $('').appendTo($messageBody); $messageBody.find('.messageText').children().hide(); + // show unrelated content + $messageBody.find('.jsInlineEditorHideContent').show(); + if (this._quoteManager) { this._quoteManager.clearAlternativeCKEditor(); } @@ -1427,6 +1439,9 @@ WCF.Message.InlineEditor = Class.extend({ $messageBody.children('.icon-spinner').remove(); var $content = $messageBody.find('.messageText'); + // show unrelated content + $content.parent().children('.jsInlineEditorHideContent').show(); + // revert message options this._container[this._activeElementID].find('.messageOptions').removeClass('forceHidden');