Merge pull request #3088 from Raven24/fix-bmm-2

show an error message when creating a comment failed [ci skip]
This commit is contained in:
Daniel Grippi 2012-04-01 18:24:54 -07:00
commit 6f75fb4173

View file

@ -41,6 +41,10 @@ app.views.CommentStream = app.views.Base.extend({
this.model.comments.create({
"text" : this.$(".comment_box").val()
}, {
error: function() {
alert(Diaspora.I18n.t("failed_to_post_message"));
}
});
this.$(".comment_box").val("")