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")); }