From d46e1b5e2331278767f04b18ba5e92d54fa15817 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 24 Aug 2016 11:34:29 +0200 Subject: [PATCH] Fixed multiple error message in message preview function --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.20.1