summaryrefslogtreecommitdiff
path: root/public/assets/js/lib
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-11 10:08:34 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-11 10:08:34 +0100
commitd56452cd8c61cf463cd1bfbb5488dfc2f7387175 (patch)
treec9c680b2960691f9516900fa2d88bab780ee8ac3 /public/assets/js/lib
parent242eed0093c59047033c286d7a14608d0096b125 (diff)
edit comments
Diffstat (limited to 'public/assets/js/lib')
-rw-r--r--public/assets/js/lib/views/details/editcomment.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/details/editcomment.js b/public/assets/js/lib/views/details/editcomment.js
index 1e1474f..a290ac4 100644
--- a/public/assets/js/lib/views/details/editcomment.js
+++ b/public/assets/js/lib/views/details/editcomment.js
@@ -7,6 +7,7 @@ var EditCommentForm = FormView.extend({
},
action: "",
+ method: 'put',
initialize: function(){
this.__super__.initialize.call(this)
@@ -17,7 +18,6 @@ var EditCommentForm = FormView.extend({
load: function(id){
this.action = "/api/comment/" + id
$.get(this.action, function(data){
- console.log(data)
this.$comment.val(data.comment.comment).focus()
$("body").removeClass("loading")
}.bind(this))
@@ -37,6 +37,6 @@ var EditCommentForm = FormView.extend({
},
success: function(data){
- window.location.href = "/details/" + data.comment.id
+ window.location.href = "/details/" + data.comment.thread
}
}) \ No newline at end of file