Commit 12a3ca78

mo khan <mo@mokhan.ca>
2014-01-19 04:39:06
post comment, text and url to comments controller.
1 parent 3c42d0b
Changed files (1)
app
views
app/views/shared/_disqus.html.erb
@@ -7,7 +7,7 @@ var disqus_identifier = '<%= id %>';
     this.page.remote_auth_s3 = '<%= disqus_auth %>';
     this.page.api_key = '<%= ENV['DISQUS_API_KEY'] %>';
     this.callbacks.onNewComment = [function(comment) { 
-      $.post("/comments", { id: comment.id }, function(result){
+      $.post("/comments", { id: comment.id, url: document.url, comment: comment }, function(result){
         console.log(result);
       });
     }];