diff options
Diffstat (limited to 'public/assets/js/lib/views')
| -rw-r--r-- | public/assets/js/lib/views/index/threadform.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/index/threadform.js b/public/assets/js/lib/views/index/threadform.js index 2ea6988..0fd149c 100644 --- a/public/assets/js/lib/views/index/threadform.js +++ b/public/assets/js/lib/views/index/threadform.js @@ -6,6 +6,7 @@ var ThreadForm = FormView.extend({ }, action: "/api/thread", + method: "POST", initialize: function(){ this.__super__.initialize.call(this) @@ -39,7 +40,7 @@ var ThreadForm = FormView.extend({ var comment = this.$("[name=comment]").val() var files = this.$("[name=files]").val() if ((! comment || ! comment.length) && ! files) { - errors.push("Please enter a comment.") + errors.push("Please enter a comment or add some files.") } return errors.length ? errors : null }, |
