Shots view: set task as active when selecting it

This commit is contained in:
2016-09-22 17:09:43 +02:00
parent e2db647c20
commit 85c7908ac6
4 changed files with 36 additions and 10 deletions

View File

@@ -40,11 +40,10 @@ function task_open(task_id, project_url) {
return;
}
$('#task-list').find('a').removeClass('active');
$('[id^="task-"]').removeClass('active');
$('#task-' + task_id).addClass('active');
var task_url = '/attract/' + project_url + '/tasks/' + task_id;
console.log('task_url is ' + task_url);
$.get(task_url, function(task_data) {
$('#task-details').html(task_data);