mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
event fixes WIP
This commit is contained in:
@@ -41,8 +41,9 @@ export default class CollapsibleWidget extends TabAwareWidget {
|
||||
this.$bodyWrapper.collapse("show");
|
||||
}
|
||||
|
||||
this.$bodyWrapper.on('hidden.bs.collapse', () => options.save(widgetName + 'Collapsed', 'true'));
|
||||
this.$bodyWrapper.on('shown.bs.collapse', () => options.save(widgetName + 'Collapsed', 'false'));
|
||||
// using immediate variants of the event so that the previous collapse is not caught
|
||||
this.$bodyWrapper.on('hide.bs.collapse', () => options.save(widgetName + 'Collapsed', 'true'));
|
||||
this.$bodyWrapper.on('show.bs.collapse', () => options.save(widgetName + 'Collapsed', 'false'));
|
||||
|
||||
this.$body = this.$bodyWrapper.find('.card-body');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user