FEATURE: agree all the flags

This commit is contained in:
Régis Hanol
2014-08-04 22:48:04 +02:00
parent 17debbdcda
commit ec30086dea
12 changed files with 122 additions and 42 deletions
@@ -104,8 +104,8 @@ Discourse.FlaggedPost = Discourse.Post.extend({
return Discourse.ajax('/admin/flags/defer/' + this.id, { type: 'POST', cache: false, data: { delete_post: deletePost } });
},
agreeFlags: function (deletePost) {
return Discourse.ajax('/admin/flags/agree/' + this.id, { type: 'POST', cache: false, data: { delete_post: deletePost } });
agreeFlags: function (actionOnPost) {
return Discourse.ajax('/admin/flags/agree/' + this.id, { type: 'POST', cache: false, data: { action_on_post: actionOnPost } });
},
postHidden: Em.computed.alias('hidden'),