FIX: dual modal when deleting spammer in the flag modal

This commit is contained in:
Régis Hanol
2014-08-29 13:05:51 +02:00
parent 521cb6bd0d
commit fd6dd88afb
3 changed files with 10 additions and 14 deletions
@@ -15,18 +15,6 @@ Discourse.AdminFlagsRouteType = Discourse.Route.extend({
adminFlagsController.set('query', this.get('filter'));
},
actions: {
/**
Deletes a user and all posts and topics created by that user.
@method deleteSpammer
**/
deleteSpammer: function (user) {
this.send('closeModal');
user.deleteAsSpammer(function() { window.location.reload(); });
}
}
});
Discourse.AdminFlagsActiveRoute = Discourse.AdminFlagsRouteType.extend({