add trim for JS Validation
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 21 Sep 2014 16:11:56 +0000 (18:11 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 21 Sep 2014 16:11:56 +0000 (18:11 +0200)
wcfsetup/install/files/js/WCF.Moderation.js

index 6e5208615d29014a8c2b4b9e26c9d9e12e31d9ff..9acf892f67ec22a21723d0138b61b3a8d75a3607 100644 (file)
@@ -329,7 +329,7 @@ WCF.Moderation.Report.Content = Class.extend({
         */
        _submit: function() {
                var $text = this._dialog.find('.jsReportMessage').val();
-               if ($text == '') {
+               if ($.trim($text) == '') {
                        this._dialog.find('fieldset > dl').addClass('formError');
                        
                        if (!this._dialog.find('.innerError').length) {