removed 'loaded' class from two views; we don't need to specify post_id explicitly with comment creation
This commit is contained in:
parent
f72edbc039
commit
ff82283b3c
3 changed files with 3 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ app.views.Comment = app.views.StreamObject.extend({
|
|||
|
||||
tagName : "li",
|
||||
|
||||
className : "comment loaded",
|
||||
className : "comment",
|
||||
|
||||
events : {
|
||||
"click .comment_delete": "destroyModel"
|
||||
|
|
|
|||
|
|
@ -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("");
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue