From 40dea1929b88e0431737ca21085a38f5e5045b4a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 25 Mar 2015 19:41:54 +0900 Subject: [PATCH] Fixing profile --- static/scripts/profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/scripts/profile.js b/static/scripts/profile.js index 60131e3..0148881 100644 --- a/static/scripts/profile.js +++ b/static/scripts/profile.js @@ -65,12 +65,12 @@ $('#categories').append($(template({categories: categories})).hide().fadeIn()); $('#categories input:radio').unbind().change(function() { - setProfileValue(parseInt($(this).attr('data-categoryId'), this.value)); + setProfileValue($(this).attr('data-categoryId'), parseInt(this.value)); }); $('#categories button').unbind().click(function() { if (confirm('Are you sure you want to delete this category?')) { - removeCategory(parseInt($(this).attr('data-categoryId'))); + removeCategory($(this).attr('data-categoryId')); } }); }