Fix auto-group refresh response so that ajax callback runs

This commit is contained in:
Michael Campagnaro
2013-07-26 19:46:42 -04:00
parent 0320a5ae64
commit aa7e96c0fa
3 changed files with 6 additions and 5 deletions

View File

@ -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;