Merge pull request #3495 from techAPJ/patch-2

FIX: send category-id if present when deleting category
This commit is contained in:
Régis Hanol 2015-05-21 11:00:16 +02:00
commit 358f5cacf9

View File

@ -90,7 +90,7 @@ Discourse.Category = Discourse.Model.extend({
}.property("permissions"),
destroy: function() {
return Discourse.ajax("/categories/" + (this.get('slug') || this.get('id')), { type: 'DELETE' });
return Discourse.ajax("/categories/" + (this.get('id') || this.get('slug')), { type: 'DELETE' });
},
addPermission: function(permission){