Fixing profile
This commit is contained in:
parent
f9444883d9
commit
40dea1929b
@ -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'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user