UX: stop displaying "user deleted, OK" dialog

This commit is contained in:
Jeff Atwood 2014-08-29 03:34:23 -07:00
parent dd972856d6
commit 36405287b4
1 changed files with 0 additions and 6 deletions

View File

@ -307,9 +307,6 @@ Discourse.AdminUser = Discourse.User.extend({
data: formData
}).then(function(data) {
if (data.deleted) {
bootbox.alert(I18n.t("admin.user.deleted"), function() {
document.location = "/admin/users/list/active";
});
} else {
bootbox.alert(I18n.t("admin.user.delete_failed"));
if (data.user) {
@ -361,9 +358,6 @@ Discourse.AdminUser = Discourse.User.extend({
data: {delete_posts: true, block_email: true, block_urls: true, block_ip: true, context: window.location.pathname}
}).then(function(data) {
if (data.deleted) {
bootbox.alert(I18n.t("admin.user.deleted"), function() {
if (successCallback) successCallback();
});
} else {
bootbox.alert(I18n.t("admin.user.delete_failed"));
}