From 5c9401f3cc3e3da1cf04d72c132df522301674f5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 18 Apr 2015 13:12:22 +0900 Subject: [PATCH] Fixing code to remove categories correctly --- static/scripts/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/scripts/profile.js b/static/scripts/profile.js index 0148881..bcfd6ec 100644 --- a/static/scripts/profile.js +++ b/static/scripts/profile.js @@ -70,7 +70,7 @@ $('#categories button').unbind().click(function() { if (confirm('Are you sure you want to delete this category?')) { - removeCategory($(this).attr('data-categoryId')); + removeCategory(parseInt($(this).attr('data-categoryId'))); } }); }