Skip to content
Extraits de code Groupes Projets
Valider ff82283b rédigé par danielgrippi's avatar danielgrippi Validation de Dennis Collinson
Parcourir les fichiers

removed 'loaded' class from two views; we don't need to specify post_id...

removed 'loaded' class from two views; we don't need to specify post_id explicitly with comment creation
parent f72edbc0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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("");
......
app.views.Feedback = app.views.StreamObject.extend({
template_name: "#feedback-template",
className : "info loaded",
className : "info",
events: {
"click .like_action": "toggleLike",
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter