Skip to content

Commit

Permalink
after deleting a user, don't show a popup saying you deleted the user…
Browse files Browse the repository at this point in the history
…. jeff hates that.
  • Loading branch information
nlalonde committed Sep 23, 2014
1 parent d073b90 commit 6fafebc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/assets/javascripts/admin/models/admin_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ 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";
});
document.location = "/admin/users/list/active";
} else {
bootbox.alert(I18n.t("admin.user.delete_failed"));
if (data.user) {
Expand Down Expand Up @@ -361,9 +359,7 @@ 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() {

This comment has been minimized.

Copy link
@eviltrout

eviltrout Sep 23, 2014

Contributor

Do we need to delete the admin.user.deleted key from i18n?

if (successCallback) successCallback();
});
if (successCallback) successCallback();
} else {
bootbox.alert(I18n.t("admin.user.delete_failed"));
}
Expand Down

0 comments on commit 6fafebc

Please sign in to comment.