From: Alexander Ebert Date: Wed, 9 Jul 2014 14:31:53 +0000 (+0200) Subject: Fixed inline edit and quick reply not properly toggling elements X-Git-Tag: 2.1.0_Alpha_1~597^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3da967ba333698be35442b174cbb5d162fa6ea99;p=GitHub%2FWoltLab%2FWCF.git Fixed inline edit and quick reply not properly toggling elements --- 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