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');
}

View File

@@ -115,15 +115,17 @@
&.active
opacity: 1
border-radius: 2px
display: inline-block
&:before
transform: translate(-50%, -50%) scale(1.6)
border: 2px solid $color-primary
&.task-add
width: auto
border-radius: initial
opacity: 0
vertical-align: middle
padding: 15px 5px
padding: 5px
display: flex
&:hover