Fix category delete

This commit is contained in:
Neil Lalonde 2013-06-10 14:20:06 -04:00
parent 9b1d0baf45
commit 78000fe870

View file

@ -153,7 +153,7 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
$('#discourse-modal').modal('hide');
bootbox.confirm(Em.String.i18n("category.delete_confirm"), Em.String.i18n("no_value"), Em.String.i18n("yes_value"), function(result) {
if (result) {
categoryController.get('category').destroy().then(function(){
categoryController.get('model').destroy().then(function(){
// success
Discourse.URL.redirectTo("/categories");
}, function(jqXHR){