From ff82283b3cc68ebdcaf5707e88809e9ecdbbe885 Mon Sep 17 00:00:00 2001
From: danielgrippi <danielgrippi@gmail.com>
Date: Wed, 4 Jan 2012 15:53:05 -0800
Subject: [PATCH] removed 'loaded' class from two views; we don't need to
 specify post_id explicitly with comment creation

---
 public/javascripts/app/views/comment_view.js         | 2 +-
 public/javascripts/app/views/commment_stream_view.js | 3 +--
 public/javascripts/app/views/feedback_view.js        | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/public/javascripts/app/views/comment_view.js b/public/javascripts/app/views/comment_view.js
index 0a0a8dcfbc..eb1cc0dbee 100644
--- a/public/javascripts/app/views/comment_view.js
+++ b/public/javascripts/app/views/comment_view.js
@@ -4,7 +4,7 @@ app.views.Comment = app.views.StreamObject.extend({
 
   tagName : "li",
 
-  className : "comment loaded",
+  className : "comment",
 
   events : {
     "click .comment_delete": "destroyModel"
diff --git a/public/javascripts/app/views/commment_stream_view.js b/public/javascripts/app/views/commment_stream_view.js
index 5bf609ffa7..94ea07ec02 100644
--- a/public/javascripts/app/views/commment_stream_view.js
+++ b/public/javascripts/app/views/commment_stream_view.js
@@ -25,8 +25,7 @@ app.views.CommentStream = app.views.Base.extend({
     if(evt){ evt.preventDefault(); }
 
     this.model.comments.create({
-      "text" : this.$(".comment_box").val(),
-      "post_id" : this.model.id
+      "text" : this.$(".comment_box").val()
     });
 
     this.$(".comment_box").val("");
diff --git a/public/javascripts/app/views/feedback_view.js b/public/javascripts/app/views/feedback_view.js
index ffc27091ba..363c5b77d2 100644
--- a/public/javascripts/app/views/feedback_view.js
+++ b/public/javascripts/app/views/feedback_view.js
@@ -1,7 +1,7 @@
 app.views.Feedback = app.views.StreamObject.extend({
   template_name: "#feedback-template",
 
-  className : "info loaded",
+  className : "info",
 
   events: {
     "click .like_action": "toggleLike",
-- 
GitLab