Fixed error message for preview if message is empty
authorAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jul 2016 15:15:10 +0000 (17:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 29 Jul 2016 15:36:18 +0000 (17:36 +0200)
wcfsetup/install/files/js/WCF.Message.js

index c225b6f09f11ef4c1cdeb61fa2f37b70c10545f6..2cd7b3d8d860c4d5f4b2f6a699d5e98ec51493df 100644 (file)
@@ -437,7 +437,7 @@ WCF.Message.Preview = Class.extend({
                        $innerError = $('<small class="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;
        }