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:
commit
6f75fb4173
1 changed files with 4 additions and 0 deletions
|
|
@ -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("")
|
||||
|
|
|
|||
Loading…
Reference in a new issue