From 24b8a80feb57ee83702ff05c79e5b7aa8baa39e3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 15 Jan 2014 23:30:48 +0100 Subject: [PATCH] Fixed message sort order setting --- wcfsetup/install/files/js/WCF.Message.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index fccfb57ec0..7c5748932d 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -915,7 +915,12 @@ WCF.Message.QuickReply = Class.extend({ if (data.returnValues.template) { // insert HTML var $message = $('' + data.returnValues.template); - $message.insertBefore(this._container); + if (this._container.data('sortOrder') == 'DESC') { + $message.insertAfter(this._container); + } + else { + $message.insertBefore(this._container); + } // update last post time this._container.data('lastPostTime', data.returnValues.lastPostTime); -- 2.20.1