diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 09:52:40 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 09:52:40 +0100 |
| commit | c06f440e4a41853fc30ff5b231c68bd766ba96fa (patch) | |
| tree | 2f1972dbdde80ff05cac339576a0d5cd63f4254d /public/assets/js/lib | |
| parent | 2be058bfd57790616a9d3282260a89dc1ccf65ab (diff) | |
remove comments
Diffstat (limited to 'public/assets/js/lib')
| -rw-r--r-- | public/assets/js/lib/views/details/comments.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js index 202ae72..c679d22 100644 --- a/public/assets/js/lib/views/details/comments.js +++ b/public/assets/js/lib/views/details/comments.js @@ -62,6 +62,8 @@ var CommentsView = FormView.extend({ $.ajax({ method: "DELETE", url: "/api/comment/" + id, + headers: { "csrf-token": $("[name=_csrf]").attr("value") }, + data: { csrf: csrf() }, success: function(){ window.location.reload() }, |
