use d-buttons, and other small tweaks

This commit is contained in:
Neil Lalonde
2015-03-10 13:06:08 -04:00
parent b5263b9b9b
commit be446b7e50
4 changed files with 26 additions and 10 deletions

View File

@ -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 {