From 73f1ee18a9cf3ced32a0485ca86ce82f5643d99b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 29 Aug 2016 09:28:55 +0200 Subject: [PATCH] Fixed an issue with the reply button on last page --- .../files/js/3rdParty/redactor2/plugins/WoltLabReply.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.20.1