Fixing code to remove categories correctly
This commit is contained in:
parent
3d7daf8417
commit
5c9401f3cc
@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
$('#categories button').unbind().click(function() {
|
$('#categories button').unbind().click(function() {
|
||||||
if (confirm('Are you sure you want to delete this category?')) {
|
if (confirm('Are you sure you want to delete this category?')) {
|
||||||
removeCategory($(this).attr('data-categoryId'));
|
removeCategory(parseInt($(this).attr('data-categoryId')));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user