Moved stuff that always needs to happen on 'task open' into task_open().
This commit is contained in:
@@ -79,6 +79,11 @@ function item_open(item_id, item_type, pushState)
|
||||
function task_open(task_id)
|
||||
{
|
||||
item_open(task_id, 'task');
|
||||
|
||||
if (ProjectUtils.context() == 'shot'){
|
||||
$('[id^="shot-"]').removeClass('active');
|
||||
$(this).parent().parent().addClass('active');
|
||||
}
|
||||
}
|
||||
|
||||
function shot_open(shot_id)
|
||||
@@ -356,10 +361,5 @@ $(function() {
|
||||
e.preventDefault();
|
||||
var task_id = e.delegateTarget.dataset.taskId;
|
||||
task_open(task_id);
|
||||
|
||||
if (ProjectUtils.context() == 'shot'){
|
||||
$('[id^="shot-"]').removeClass('active');
|
||||
$(this).parent().parent().addClass('active');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user