Merge pull request #2577 from aignatov-bio/ai-sci-4646-fix-task-sections-collapse-animation

Fix collapse animation for task sections [SCI-4646]
This commit is contained in:
aignatov-bio 2020-05-19 10:31:36 +02:00 committed by GitHub
commit c00b96ff7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -27,6 +27,7 @@ function initTaskCollapseState() {
if (JSON.parse(collapsed)) {
$('#' + taskSectionType).collapse('hide');
}
$(this).closest('.task-section').removeClass('hidden');
});
}

View file

@ -29,7 +29,7 @@
</div>
</div>
<!-- Notes -->
<div class="task-section">
<div class="task-section hidden">
<div class="task-section-header">
<a class="task-section-caret" role="button" data-toggle="collapse" href="#notes-container" aria-expanded="true" aria-controls="notes-container">
<i class="fas fa-caret-right"></i>
@ -43,7 +43,7 @@
</div>
</div>
<!-- Assigned items -->
<div class="task-section">
<div class="task-section hidden">
<div class="task-section-header">
<a class="task-section-caret" role="button" data-toggle="collapse" href="#assigned-items-container" aria-expanded="true" aria-controls="assigned-items-container">
<i class="fas fa-caret-right"></i>
@ -71,7 +71,7 @@
<%= render partial: "my_modules/modals/update_repository_records_modal" %>
</div>
<!-- Protocol -->
<div class="task-section">
<div class="task-section hidden">
<div class="task-section-header">
<a class="task-section-caret" role="button" data-toggle="collapse" href="#protocol-container" aria-expanded="true" aria-controls="protocol-container">
<i class="fas fa-caret-right"></i>