Fixed attachments not resetted properly
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 Jul 2016 13:19:11 +0000 (15:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 Jul 2016 13:19:16 +0000 (15:19 +0200)
wcfsetup/install/files/js/WCF.Attachment.js

index 643fb8a0301531707f4eb2ab2b7fd58ea22d3ceb..b349b0d336dbdd54b9bbc1dd7f5b2b62ab752541 100644 (file)
@@ -85,7 +85,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({
                
                if (this._editorId) {
                        WCF.System.Event.addListener('com.woltlab.wcf.redactor2', 'submit_' + this._editorId, $.proxy(this._submitInline, this));
-                       WCF.System.Event.addListener('com.woltlab.wcf.redactor2', 'reset', $.proxy(this._reset, this));
+                       WCF.System.Event.addListener('com.woltlab.wcf.redactor2', 'reset_' + this._editorId, $.proxy(this._reset, this));
                        
                        // TODO
                        //WCF.System.Event.addListener('com.woltlab.wcf.redactor', 'upload_' + this._editorId, $.proxy(this._editorUpload, this));