From d2b9427f8df2353d3ced686cb9d512fe7f04f055 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 25 Jun 2014 20:04:07 +0200 Subject: [PATCH] Fixed editing of comments still displaying the single line input --- wcfsetup/install/files/js/WCF.Comment.js | 55 +++++++++++++++--------- 1 file changed, 34 insertions(+), 21 deletions(-) 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 = $('