summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/commentform.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-10 07:02:47 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-10 07:02:47 +0100
commit9e6b80c0321ba1fbe1c824083acbeeac7b7b94d4 (patch)
tree67cd6d247cd1bc15c43ebad10e2f02249217e8ca /public/assets/js/lib/views/details/commentform.js
parenta932b664db987f2cf9ceefe9bb56e43793470d5e (diff)
post form and other stuff
Diffstat (limited to 'public/assets/js/lib/views/details/commentform.js')
-rw-r--r--public/assets/js/lib/views/details/commentform.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/public/assets/js/lib/views/details/commentform.js b/public/assets/js/lib/views/details/commentform.js
index 30671f2..3b82ac7 100644
--- a/public/assets/js/lib/views/details/commentform.js
+++ b/public/assets/js/lib/views/details/commentform.js
@@ -5,7 +5,7 @@ var CommentForm = FormView.extend({
events: {
},
- action: "/api/thread/1/comment",
+ action: "",
initialize: function(){
this.__super__.initialize.call(this)
@@ -26,8 +26,7 @@ var CommentForm = FormView.extend({
return errors.length ? errors : null
},
- success: function(comment){
- this.prependComment(comment)
- this.$("[name=comment]").val("")
+ success: function(){
+ window.location.reload()
}
}) \ No newline at end of file