Shot list: Make shot active when making one of its tasks active

This commit is contained in:
2016-09-29 15:50:27 +02:00
parent 48b9209d2f
commit 1cefb2fa06
2 changed files with 10 additions and 3 deletions

View File

@@ -322,6 +322,11 @@ $(function() {
var task_id = e.delegateTarget.dataset.taskId;
task_open(task_id);
if (ProjectUtils.context() == 'shot'){
$('[id^="shot-"]').removeClass('active');
$(this).parent().parent().addClass('active');
}
if ($(window).scrollTop() > 100) {
$("html, body").animate({scrollTop: 50 }, '500', 'swing');
}