mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-25 01:04:02 +08:00
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:
commit
c00b96ff7e
2 changed files with 4 additions and 3 deletions
|
@ -27,6 +27,7 @@ function initTaskCollapseState() {
|
|||
if (JSON.parse(collapsed)) {
|
||||
$('#' + taskSectionType).collapse('hide');
|
||||
}
|
||||
$(this).closest('.task-section').removeClass('hidden');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue