use group.get as per PR comment

This commit is contained in:
Michael Campagnaro 2013-07-22 16:19:08 -04:00
parent 9616767bff
commit a0465485b4
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ Discourse.Group = Discourse.Model.extend({
var group = this; var group = this;
group.set('disableSave', true); group.set('disableSave', true);
return Discourse.ajax("/admin/groups/" + group.id, {type: "DELETE"}) return Discourse.ajax("/admin/groups/" + group.get('id'), {type: "DELETE"})
.then(function(){ .then(function(){
return true; return true;
}, function(jqXHR, status, error) { }, function(jqXHR, status, error) {