From: Alexander Ebert Date: Wed, 25 Jun 2014 18:04:07 +0000 (+0200) Subject: Fixed editing of comments still displaying the single line input X-Git-Tag: 2.1.0_Alpha_1~672^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2b9427f8df2353d3ced686cb9d512fe7f04f055;p=GitHub%2FWoltLab%2FWCF.git Fixed editing of comments still displaying the single line input --- diff --git a/wcfsetup/install/files/js/WCF.Comment.js b/wcfsetup/install/files/js/WCF.Comment.js index 2edba80b51..833d41d60e 100644 --- a/wcfsetup/install/files/js/WCF.Comment.js +++ b/wcfsetup/install/files/js/WCF.Comment.js @@ -652,28 +652,31 @@ WCF.Comment.Handler = Class.extend({ * @param object data */ _edit: function(data) { + var $content; if (data.returnValues.commentID) { - var $content = this._comments[data.returnValues.commentID].find('.commentContent:eq(0) .userMessage:eq(0)'); + $content = this._comments[data.returnValues.commentID].find('.commentContent:eq(0) .userMessage:eq(0)'); } else { - var $content = this._responses[data.returnValues.responseID].find('.commentContent:eq(0) .userMessage:eq(0)'); + $content = this._responses[data.returnValues.responseID].find('.commentContent:eq(0) .userMessage:eq(0)'); } // replace content with input field $content.html($.proxy(function(index, oldHTML) { - var $input = $('' + WCF.Language.get('wcf.comment.description') + '').val(data.returnValues.message); - $input.data('__html', oldHTML).keyup($.proxy(this._saveEdit, this)); + var $textarea = $('