From 8bda8a2235efb0dee145d133afc9ef1f48818160 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 29 Aug 2014 03:49:00 -0700 Subject: [PATCH] Revert "UX: stop displaying "user deleted, OK" dialog" This reverts commit 36405287b477e6b4ba72de0b9bd57f8ab12043a1. --- app/assets/javascripts/admin/models/admin_user.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/admin/models/admin_user.js b/app/assets/javascripts/admin/models/admin_user.js index e83dca18ab4..a84d3adbc20 100644 --- a/app/assets/javascripts/admin/models/admin_user.js +++ b/app/assets/javascripts/admin/models/admin_user.js @@ -307,6 +307,9 @@ 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) { @@ -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} }).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")); }