From e50239ee39ed26badbce96d96faad9e01fe7d8ca Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 23 Jun 2015 11:22:27 -0700 Subject: [PATCH] fix for comment issue --- public/js/news/comment.js | 3 --- views/_news_templates.erb | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/public/js/news/comment.js b/public/js/news/comment.js index 278c8d61..ce534e10 100644 --- a/public/js/news/comment.js +++ b/public/js/news/comment.js @@ -3,16 +3,13 @@ var Comment = { var form = $(form) var comment = form.find('[name="comment"]').val() form.remove() - $.post('/event/'+eventId+'/comment', {csrf_token: csrfToken, message: comment}, function(res) { - console.log(res) location.reload() }) }, delete: function(commentId, csrfToken) { $.post('/comment/'+commentId+'/delete', {csrf_token: csrfToken}, function(res) { - console.log(res) location.reload() }) }, diff --git a/views/_news_templates.erb b/views/_news_templates.erb index df016880..72249f2f 100644 --- a/views/_news_templates.erb +++ b/views/_news_templates.erb @@ -1,5 +1,5 @@