Added /attract/<project_url>/shots/<shot-id> endpoint

This commit is contained in:
2016-09-22 17:22:43 +02:00
parent f1dc2b2d06
commit 0767463ead
3 changed files with 13 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ function task_open(task_id, project_url) {
}
$('[id^="task-"]').removeClass('active');
$('#task-' + task_id).addClass('active');
var task_url = '/attract/' + project_url + '/tasks/' + task_id;
@@ -65,6 +66,8 @@ function shot_open(shot_id, project_url) {
return;
}
$('#col_right .col_header').text('Shot details');
$('#shot-list').find('a').removeClass('active');
$('#shot-link' + shot_id).addClass('active');