summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-01-18 21:39:06 -0700
committermo khan <mo@mokhan.ca>2014-01-18 21:39:06 -0700
commit12a3ca784bcfc2c0ae69de5cbd79e45922c0c572 (patch)
treeef44c2198b8123c7e9402273256096753d05de01 /app/views/shared
parent3c42d0bc1cd209fb686bdc68d5076693be8a193f (diff)
post comment, text and url to comments controller.
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_disqus.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_disqus.html.erb b/app/views/shared/_disqus.html.erb
index f5ebff1d..9b71445c 100644
--- a/app/views/shared/_disqus.html.erb
+++ b/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);
});
}];