From: Alexander Ebert Date: Sun, 15 Sep 2013 13:54:17 +0000 (+0200) Subject: Improved flood control handling for comments X-Git-Tag: 2.0.0_Beta_9~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62b57ad13d09802a702ea1219b98d8a26dee2586;p=GitHub%2FWoltLab%2FWCF.git Improved flood control handling for comments --- diff --git a/wcfsetup/install/files/js/WCF.Comment.js b/wcfsetup/install/files/js/WCF.Comment.js index c67f083d9c..58b2fc1709 100644 --- a/wcfsetup/install/files/js/WCF.Comment.js +++ b/wcfsetup/install/files/js/WCF.Comment.js @@ -447,7 +447,7 @@ WCF.Comment.Handler = Class.extend({ this._proxy.sendRequest(); // reset input - $input.val('').blur(); + //$input.val('').blur(); }, /** @@ -492,11 +492,14 @@ WCF.Comment.Handler = Class.extend({ _success: function(data, textStatus, jqXHR) { switch (data.actionName) { case 'addComment': + this._commentAdd.find('input').val('').blur(); $(data.returnValues.template).insertAfter(this._commentAdd).wcfFadeIn(); break; case 'addResponse': var $comment = this._comments[data.returnValues.commentID]; + $comment.find('.jsCommentResponseAdd input').val('').blur(); + var $responseList = $comment.find('ul.commentResponseList'); if (!$responseList.length) $responseList = $('