瀏覽代碼

Visit UI - support for older version notes

Vijayakrishnan 3 年之前
父節點
當前提交
bd4d6bdfa6
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      resources/views/app/patient/note/dashboard_script.blade.php

+ 4 - 2
resources/views/app/patient/note/dashboard_script.blade.php

@@ -289,7 +289,8 @@
                     return false;
                 });
 
-                /*$(document)
+                @if(!$note->visitTemplate)
+                $(document)
                     .off('mousedown.enable-edit', '.note-section:not(.edit):not(.page-driven)')
                     .on('mousedown.enable-edit', '.note-section:not(.edit):not(.page-driven)', function(e) {
                         if($(this).closest('.note-signed-by-hcp').length) return;
@@ -297,7 +298,8 @@
                         e.preventDefault();
                         $(this).find('.edit-trigger').first().click();
                         return false;
-                    });*/
+                    });
+                @endif
 
                 // $(document)
                 //     .off('mousedown.enable-edit', '.note-section:not(.edit).page-driven')