From: Alexander Ebert Date: Mon, 5 Dec 2016 10:16:45 +0000 (+0100) Subject: Work-around Grammarly messing up the DOM X-Git-Tag: 3.0.0_RC_1~90 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ace6f9fa30898ebcb8b13c04f50639efb130c7e;p=GitHub%2FWoltLab%2FWCF.git Work-around Grammarly messing up the DOM --- diff --git a/wcfsetup/install/files/js/WCF.Comment.js b/wcfsetup/install/files/js/WCF.Comment.js index ad1a6c0f4c..16b8c46e72 100644 --- a/wcfsetup/install/files/js/WCF.Comment.js +++ b/wcfsetup/install/files/js/WCF.Comment.js @@ -829,8 +829,8 @@ WCF.Comment.Handler = Class.extend({ _saveEdit: function(event) { var $input = $(event.currentTarget); if ($input.is('button')) { - $input.prev('small.innerError').remove(); - $input = $input.prev('textarea'); + $input.parent().children('small.innerError').remove(); + $input = $input.parent().children('textarea'); } var $message = $.trim($input.val());