Fixed check for empty message in quick reply
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Aug 2013 11:09:45 +0000 (13:09 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Aug 2013 11:09:45 +0000 (13:09 +0200)
PHP considers '0' to be empty.

wcfsetup/install/files/js/WCF.Message.js

index fc98f5eec9f6e036cd14d63b328665ac29a719f5..ab144f6787d94eab44c27181200eec361cc39a20 100644 (file)
@@ -767,7 +767,7 @@ WCF.Message.QuickReply = Class.extend({
                
                // check if message is empty
                var $innerError = this._messageField.parent().find('small.innerError');
-               if ($message === '') {
+               if ($message === '' || $message === '0') {
                        if (!$innerError.length) {
                                $innerError = $('<small class="innerError" />').appendTo(this._messageField.parent());
                        }