Browse Source

Visit UI - LHS tree npx check

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
a929f63a53
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      resources/views/app/patient/note/dashboard.blade.php

+ 3 - 2
resources/views/app/patient/note/dashboard.blade.php

@@ -2255,8 +2255,9 @@
                     });
             }
             function fixTreeTopAndHeight() {
-                let tree = $('#note-lhs-tree'), noteCardHeader = $('#note-card-header'),
-                    resultTop = (noteCardHeader.offset().top + noteCardHeader.outerHeight(true)) - $(window).scrollTop();
+                let tree = $('#note-lhs-tree'), noteCardHeader = $('#note-card-header');
+                if(!noteCardHeader.length) return;
+                let resultTop = (noteCardHeader.offset().top + noteCardHeader.outerHeight(true)) - $(window).scrollTop();
                 if(resultTop <= 55) {
                     tree.addClass('fixed');
                 }