Revert "UX: stop displaying "user deleted, OK" dialog"

This reverts commit 36405287b4.
This commit is contained in:
Jeff Atwood 2014-08-29 03:49:00 -07:00
parent 36405287b4
commit 8bda8a2235
1 changed files with 6 additions and 0 deletions

View File

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