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",
|
tagName : "li",
|
||||||
|
|
||||||
className : "comment loaded",
|
className : "comment",
|
||||||
|
|
||||||
events : {
|
events : {
|
||||||
"click .comment_delete": "destroyModel"
|
"click .comment_delete": "destroyModel"
|
||||||
|
|
|
||||||
|
|
@ -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("");
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue