LT-326: Show all series of a study after loading it in Studies Sidebar (moving original logic to newly created method)
This commit is contained in:
parent
e70cc254ad
commit
60deb9c070
@ -25,13 +25,6 @@ const initializeStudyWrapper = instance => {
|
|||||||
$thumbnails.css('max-height', '');
|
$thumbnails.css('max-height', '');
|
||||||
$thumbnails.css('max-height', $thumbnails.height());
|
$thumbnails.css('max-height', $thumbnails.height());
|
||||||
$study.removeClass('active');
|
$study.removeClass('active');
|
||||||
};
|
|
||||||
|
|
||||||
// Initialize the study wrapper max-height to enable CSS transition
|
|
||||||
Template.studyTimepointStudy.onRendered(() => {
|
|
||||||
const instance = Template.instance();
|
|
||||||
|
|
||||||
initializeStudyWrapper(instance);
|
|
||||||
|
|
||||||
// Here we add, remove, and add the active class again because this way
|
// Here we add, remove, and add the active class again because this way
|
||||||
// the max-height animation appears smooth to the user.
|
// the max-height animation appears smooth to the user.
|
||||||
@ -40,6 +33,14 @@ Template.studyTimepointStudy.onRendered(() => {
|
|||||||
$study.addClass('active');
|
$study.addClass('active');
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Initialize the study wrapper max-height to enable CSS transition
|
||||||
|
Template.studyTimepointStudy.onRendered(() => {
|
||||||
|
const instance = Template.instance();
|
||||||
|
|
||||||
|
initializeStudyWrapper(instance);
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.studyTimepointStudy.helpers({
|
Template.studyTimepointStudy.helpers({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user