Shot list: Make shot active when making one of its tasks active
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user