|
@@ -16,6 +16,16 @@
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
+ $(document)
|
|
|
+ .off('mouseenter', '[data-non-segment-section]')
|
|
|
+ .on('mouseenter', '[data-non-segment-section]', function(){
|
|
|
+ $('.note-tree-node').removeClass('hovered');
|
|
|
+ let target = $('.note-tree-node a[data-non-segment-target="' + $(this).attr('data-non-segment-section') + '"]');
|
|
|
+ target.parent().addClass('hovered');
|
|
|
+ target.parent().parents('.note-tree-node').addClass('hovered');
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
$(document)
|
|
|
.off('mouseleave', '.note-section')
|
|
|
.on('mouseleave', '.note-section', () => {
|