diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-10 17:06:40 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-10 17:06:40 +0100 |
| commit | d9b9383118302aff6d73856175d7362d8b1463c5 (patch) | |
| tree | 24b991ef9aa94819d5071c534c7e7d2394d80fa0 /public/assets/js/lib | |
| parent | 26f8a74aee3a14563d2e802b62ee70e4f4a5bcd8 (diff) | |
env
Diffstat (limited to 'public/assets/js/lib')
| -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 }, |
