LT-251: Making series switch behave like demonstrated in the design video
This commit is contained in:
1 parent
c623faea94
commit
c8fdf0522e
4 files changed
+62
-19
No files matched your search
+9
@@ -33,6 +33,15 @@ Template.studySeriesQuickSwitch.onCreated(() => {
|
||||
};
|
||||
});
|
||||
|
||||
Template.studySeriesQuickSwitch.events({
|
||||
'mouseenter .js-quick-switch, mouseenter .js-quick-switch .switchSectionSeries'(event, instance) {
|
||||
$(event.currentTarget).addClass('hover');
|
||||
},
|
||||
'mouseleave .js-quick-switch'(event, instance) {
|
||||
instance.$('.js-quick-switch, .switchSectionSeries').removeClass('hover');
|
||||
}
|
||||
});
|
||||
|
||||
Template.studySeriesQuickSwitch.helpers({
|
||||
// Get the current study and change the reactive variable
|
||||
currentStudy() {
|
||||
|
||||
Reference in new issue
Block a user