From: Marcel Werk Date: Wed, 24 Aug 2016 09:34:29 +0000 (+0200) Subject: Fixed multiple error message in message preview function X-Git-Tag: 3.0.0_Beta_1~536 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d46e1b5e2331278767f04b18ba5e92d54fa15817;p=GitHub%2FWoltLab%2FWCF.git Fixed multiple error message in message preview function --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 047493495d..3e6e6f51b9 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -432,7 +432,7 @@ WCF.Message.Preview = Class.extend({ // restore preview button this._previewButton.html(this._previewButtonLabel).enable(); - var $innerError = this._textarea.next('small.innerError').empty(); + var $innerError = this._textarea.parent().children('small.innerError').empty(); if (!$innerError.length) { $innerError = $('').appendTo(this._textarea.parent()); }