Fixed adding responses
authorAlexander Ebert <ebert@woltlab.com>
Fri, 20 Jun 2014 10:16:42 +0000 (12:16 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 20 Jun 2014 10:16:42 +0000 (12:16 +0200)
wcfsetup/install/files/js/WCF.Comment.js

index 1d1ab8214753afaa23b05ccb11fcceac4e97915e..2edba80b51712953de9ea94fe5056640e15fa1c8 100644 (file)
@@ -345,7 +345,7 @@ WCF.Comment.Handler = Class.extend({
                
                var $inputContainer = $listItem.children('div');
                var $input = $('<textarea placeholder="' + WCF.Language.get('wcf.comment.response.add') + '" maxlength="65535" class="long" />').data('commentID', commentID).appendTo($inputContainer).flexible();
-               $('<button class="small">' + WCF.Language.get('wcf.global.button.submit') + '</button>').click($.proxy(this._save, this)).appendTo($inputContainer);
+               $('<button class="small">' + WCF.Language.get('wcf.global.button.submit') + '</button>').click($.proxy(function(event) { this._save(event, true); }, this)).appendTo($inputContainer);
                
                var self = this;
                $input.keyup(function(event) { self._keyUp(event, true); });