浏览代码

Click open section - make corresponding left nav node bold as well

Vijayakrishnan 3 年之前
父节点
当前提交
e1b1cd3036
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      resources/views/app/patient/note/dashboard_script.blade.php

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

@@ -133,6 +133,13 @@
                                 editParent.find('[autofocus]').first().focus();
                             }
                         }
+
+                        let visitTreeLink = $('.note-tree-node a[data-segment-internal-name="' + editParent.attr('data-segment-template-name') + '"]');
+                        if(visitTreeLink.length) {
+                            $('.note-tree-node.active').removeClass('active');
+                            visitTreeLink.closest('.note-tree-node').addClass('active');
+                        }
+
                         return false;
                     });