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;
|
var task_id = e.delegateTarget.dataset.taskId;
|
||||||
task_open(task_id);
|
task_open(task_id);
|
||||||
|
|
||||||
|
if (ProjectUtils.context() == 'shot'){
|
||||||
|
$('[id^="shot-"]').removeClass('active');
|
||||||
|
$(this).parent().parent().addClass('active');
|
||||||
|
}
|
||||||
|
|
||||||
if ($(window).scrollTop() > 100) {
|
if ($(window).scrollTop() > 100) {
|
||||||
$("html, body").animate({scrollTop: 50 }, '500', 'swing');
|
$("html, body").animate({scrollTop: 50 }, '500', 'swing');
|
||||||
}
|
}
|
||||||
|
@@ -115,15 +115,17 @@
|
|||||||
|
|
||||||
&.active
|
&.active
|
||||||
opacity: 1
|
opacity: 1
|
||||||
border-radius: 2px
|
|
||||||
display: inline-block
|
&:before
|
||||||
|
transform: translate(-50%, -50%) scale(1.6)
|
||||||
|
border: 2px solid $color-primary
|
||||||
|
|
||||||
&.task-add
|
&.task-add
|
||||||
width: auto
|
width: auto
|
||||||
border-radius: initial
|
border-radius: initial
|
||||||
opacity: 0
|
opacity: 0
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
padding: 15px 5px
|
padding: 5px
|
||||||
display: flex
|
display: flex
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
|
Reference in New Issue
Block a user