From: Alexander Ebert Date: Mon, 23 Jan 2017 16:33:30 +0000 (+0100) Subject: Fixed full quote when text is manually selected X-Git-Tag: 3.0.2~62^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de860967717c9d5d383e244931dd5375f0707d2b;p=GitHub%2FWoltLab%2FWCF.git Fixed full quote when text is manually selected --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 5d4588f8e2..7a8cb44354 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -4,7 +4,7 @@ * Message related classes for WCF * * @author Alexander Ebert - * @copyright 2001-2015 WoltLab GmbH + * @copyright 2001-2017 WoltLab GmbH * @license GNU Lesser General Public License */ WCF.Message = { }; @@ -2351,6 +2351,13 @@ WCF.Message.Quote.Handler = Class.extend({ * @param object event */ _saveFullQuote: function(event) { + event.preventDefault(); + var selection = window.getSelection(); + if (!selection.isCollapsed && this._copyQuote) { + selection.removeAllRanges(); + this._copyQuote.hide(); + } + var $listItem = $(event.currentTarget); this._proxy.setOption('data', {