mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
after deleting a user, don't show a popup saying you deleted the user. jeff hates that.
This commit is contained in:
parent
d073b908a9
commit
6fafebc4c8
@ -307,9 +307,7 @@ 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";
|
||||||
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) {
|
||||||
@ -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}
|
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();
|
||||||
if (successCallback) successCallback();
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
bootbox.alert(I18n.t("admin.user.delete_failed"));
|
bootbox.alert(I18n.t("admin.user.delete_failed"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user