Fixed invalid quote containers being recognized
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Sep 2016 07:30:49 +0000 (09:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 15 Sep 2016 07:30:49 +0000 (09:30 +0200)
wcfsetup/install/files/js/WCF.Message.js

index db6554c5006830515713a57052480f25d4bab893..6f674816847960dde50be6cac189bb23e9eda2de 100644 (file)
@@ -1028,7 +1028,8 @@ WCF.Message.Quote.Handler = Class.extend({
        _mouseDown: function(event) {
                // hide copy quote
                this._copyQuote.removeClass('active');
-               this._activeContainerID = event.currentTarget.id;
+               
+               this._activeContainerID = (event.currentTarget.classList.contains('jsInvalidQuoteTarget')) ? '' : event.currentTarget.id;
        },
        
        /**