Inside a JS file I have this:
task_categories = new CategoryTree();
$('input:radio[name=what_tasks]').click(function () {
var where = getLocation();
taskList(where.project, task_categories.selected_elements, where.page);
});
Firefox debugger won't complain me trying to access task_categories but unfortunately, task_categories will be undefined.
How can I make this work? Thanks!