Fixed hiding of message content (e.g. polls)
authorAlexander Ebert <ebert@woltlab.com>
Sun, 16 Jun 2013 17:31:49 +0000 (19:31 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 16 Jun 2013 17:31:49 +0000 (19:31 +0200)
wcfsetup/install/files/js/WCF.Message.js

index f016b23c2488f09d7f64820c4d2e75c5064a5013..85d8f05d8a4e94ca2d53ba54b60fcd1959a3e492 100644 (file)
@@ -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({
                $('<span class="icon icon48 icon-spinner" />').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');