From: Alexander Ebert Date: Mon, 29 Aug 2016 07:28:55 +0000 (+0200) Subject: Fixed an issue with the reply button on last page X-Git-Tag: 3.0.0_Beta_1~423 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73f1ee18a9cf3ced32a0485ca86ce82f5643d99b;p=GitHub%2FWoltLab%2FWCF.git Fixed an issue with the reply button on last page --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabReply.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabReply.js index 818a2fca49..7ff166e9cf 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabReply.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabReply.js @@ -24,7 +24,12 @@ $.Redactor.prototype.WoltLabReply = function() { }, showEditor: function () { - if (!_messageQuickReply.classList.contains('messageQuickReplyCollapsed')) { + if (!_messageQuickReply) { + // direct api call, but conditions are not met, be graceful + this.WoltLabCaret.endOfEditor(); + return; + } + else if (!_messageQuickReply.classList.contains('messageQuickReplyCollapsed')) { return; }