mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:52:46 +08:00
Merge pull request #3495 from techAPJ/patch-2
FIX: send category-id if present when deleting category
This commit is contained in:
commit
358f5cacf9
|
@ -90,7 +90,7 @@ Discourse.Category = Discourse.Model.extend({
|
||||||
}.property("permissions"),
|
}.property("permissions"),
|
||||||
|
|
||||||
destroy: function() {
|
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){
|
addPermission: function(permission){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user