From: Alexander Ebert Date: Fri, 29 Jul 2016 15:15:10 +0000 (+0200) Subject: Fixed error message for preview if message is empty X-Git-Tag: 3.0.0_Beta_1~910 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e453567c31e2fa29b5dc74254970cc9d8ac30aa;p=GitHub%2FWoltLab%2FWCF.git Fixed error message for preview if message is empty --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index c225b6f09f..2cd7b3d8d8 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -437,7 +437,7 @@ WCF.Message.Preview = Class.extend({ $innerError = $('').appendTo(this._textarea.parent()); } - $innerError.html(data.returnValues.errorType); + $innerError.html((data.returnValues.errorType === 'empty' ? WCF.Language.get('wcf.global.form.error.empty') : data.returnValues.errorMessage)); return false; }