From 3da967ba333698be35442b174cbb5d162fa6ea99 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 9 Jul 2014 16:31:53 +0200 Subject: [PATCH] Fixed inline edit and quick reply not properly toggling elements --- wcfsetup/install/files/js/WCF.Message.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 61bf2d41c0..bf338bbaf0 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -785,7 +785,13 @@ WCF.Message.QuickReply = Class.extend({ // show spinner and hide Redactor var $messageBody = this._container.find('.messageQuickReplyContent .messageBody'); $('').appendTo($messageBody); - $messageBody.children('.redactor_box').hide().end().next().hide(); + var $redactorBox = $messageBody.children('.redactor_box').hide(); + + // hide message tabs + $redactorBox.next().hide(); + + // hide form submit + $messageBody.next().hide(); }, /** @@ -845,7 +851,7 @@ WCF.Message.QuickReply = Class.extend({ // display Redactor $messageBody.children('.icon-spinner').remove(); - $messageBody.children('.redactor_box').show(); + $messageBody.children('.redactor_box').show().next().show(); // display form submit $messageBody.next().show(); @@ -1340,7 +1346,7 @@ WCF.Message.InlineEditor = Class.extend({ _revertEditor: function() { var $messageBody = this._container[this._activeElementID].removeClass('jsInvalidQuoteTarget').find('.messageBody'); $messageBody.children('span.icon-spinner').remove(); - $messageBody.children('div:eq(0)').children().show(); + $messageBody.children('div:eq(0)').children(':not(.messageText)').show(); $messageBody.children('.attachmentThumbnailList, .attachmentFileList').show(); // show unrelated content -- 2.20.1