Fixed quote removal on submit
authorAlexander Ebert <ebert@woltlab.com>
Fri, 13 Feb 2015 12:13:27 +0000 (13:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 13 Feb 2015 12:13:27 +0000 (13:13 +0100)
wcfsetup/install/files/js/WCF.Message.js

index 7f6dc427200506f40934f176ba221c7527a0f691..29aaaa699a5c6581badf5b1e4212d9b20e3a1ce4 100644 (file)
@@ -1595,7 +1595,8 @@ WCF.Message.InlineEditor = Class.extend({
                        data: {
                                message: $message
                        },
-                       objectID: $objectID
+                       objectID: $objectID,
+                       removeQuoteIDs: (this._quoteManager === null ? [ ] : this._quoteManager.getQuotesMarkedForRemoval())
                };
                
                WCF.System.Event.fireEvent('com.woltlab.wcf.messageOptionsInline', 'submit_' + this._messageEditorIDPrefix + $objectID, $parameters);
@@ -1701,6 +1702,7 @@ WCF.Message.InlineEditor = Class.extend({
                
                if (this._quoteManager) {
                        this._quoteManager.clearAlternativeEditor();
+                       this._quoteManager.countQuotes();
                }
        },