Browse Source

Note - nav updates

Vijayakrishnan 3 years ago
parent
commit
0b9bcc6a88

+ 3 - 0
public/css/style.css

@@ -427,6 +427,9 @@ body>nav.navbar {
     background: #f6f9fc;
     cursor: pointer;
 }
+[data-non-segment-section]:hover {
+    background: #f6f9fc;
+}
 .note-signed-by-hcp .note-section:not(.edit):hover {
     background: #f6f9fc;
     cursor: auto;

File diff suppressed because it is too large
+ 586 - 519
resources/views/app/patient/note/dashboard.blade.php


+ 10 - 0
resources/views/app/patient/note/dashboard_script.blade.php

@@ -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', () => {

Some files were not shown because too many files changed in this diff