Fixed multiple error message in message preview function
authorMarcel Werk <burntime@woltlab.com>
Wed, 24 Aug 2016 09:34:29 +0000 (11:34 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 24 Aug 2016 09:35:25 +0000 (11:35 +0200)
wcfsetup/install/files/js/WCF.Message.js

index 047493495ddb59e539dfa06789d93241933deb83..3e6e6f51b974ece15477660256dc224598d74a37 100644 (file)
@@ -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 = $('<small class="innerError" />').appendTo(this._textarea.parent());
                }