mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
use d-buttons, and other small tweaks
This commit is contained in:
@ -336,7 +336,6 @@ Discourse.AdminUser = Discourse.User.extend({
|
||||
var performAnonymize = function() {
|
||||
Discourse.ajax("/admin/users/" + user.get('id') + '/anonymize.json', {type: 'PUT'}).then(function(data) {
|
||||
if (data.success) {
|
||||
bootbox.alert(I18n.t("admin.user.anonymize_successful"));
|
||||
if (data.username) {
|
||||
document.location = "/admin/users/" + data.username;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user