removed 'loaded' class from two views; we don't need to specify post_id explicitly with comment creation

This commit is contained in:
danielgrippi 2012-01-04 15:53:05 -08:00 committed by Dennis Collinson
parent f72edbc039
commit ff82283b3c
3 changed files with 3 additions and 4 deletions

View file

@ -4,7 +4,7 @@ app.views.Comment = app.views.StreamObject.extend({
tagName : "li", tagName : "li",
className : "comment loaded", className : "comment",
events : { events : {
"click .comment_delete": "destroyModel" "click .comment_delete": "destroyModel"

View file

@ -25,8 +25,7 @@ app.views.CommentStream = app.views.Base.extend({
if(evt){ evt.preventDefault(); } if(evt){ evt.preventDefault(); }
this.model.comments.create({ this.model.comments.create({
"text" : this.$(".comment_box").val(), "text" : this.$(".comment_box").val()
"post_id" : this.model.id
}); });
this.$(".comment_box").val(""); this.$(".comment_box").val("");

View file

@ -1,7 +1,7 @@
app.views.Feedback = app.views.StreamObject.extend({ app.views.Feedback = app.views.StreamObject.extend({
template_name: "#feedback-template", template_name: "#feedback-template",
className : "info loaded", className : "info",
events: { events: {
"click .like_action": "toggleLike", "click .like_action": "toggleLike",