1

Fixing profile

This commit is contained in:
Alex Yatskov 2015-03-25 19:41:54 +09:00
parent f9444883d9
commit 40dea1929b

View File

@ -65,12 +65,12 @@
$('#categories').append($(template({categories: categories})).hide().fadeIn()); $('#categories').append($(template({categories: categories})).hide().fadeIn());
$('#categories input:radio').unbind().change(function() { $('#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() { $('#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(parseInt($(this).attr('data-categoryId'))); removeCategory($(this).attr('data-categoryId'));
} }
}); });
} }