mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix category delete
This commit is contained in:
parent
9b1d0baf45
commit
78000fe870
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue