mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Fix auto-group refresh response so that ajax callback runs
This commit is contained in:
@ -44,7 +44,7 @@ Discourse.Group = Discourse.Model.extend({
|
||||
return Discourse.ajax("/admin/groups/" + group.get('id'), {type: "DELETE"})
|
||||
.then(function(){
|
||||
return true;
|
||||
}, function(jqXHR, status, error) {
|
||||
}, function(error) {
|
||||
group.set('disableSave', false);
|
||||
bootbox.alert(I18n.t("admin.groups.delete_failed"));
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user