mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: dual modal when deleting spammer in the flag modal
This commit is contained in:
@ -136,7 +136,16 @@ var ApplicationRoute = Em.Route.extend({
|
||||
router.controllerFor('editCategory').set('selectedTab', 'general');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
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(); });
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user