浏览代码

Allow copy from signed note section summaries

Vijayakrishnan 4 年之前
父节点
当前提交
1452cc0a00

+ 4 - 0
public/css/style.css

@@ -335,6 +335,10 @@ body>nav.navbar {
     background: #f6f9fc;
     cursor: pointer;
 }
+.note-signed-by-hcp .note-section:not(.edit):hover {
+    background: #f6f9fc;
+    cursor: auto;
+}
 .note-section.edit .if-edit {
     display: block !important;
 }

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

@@ -274,7 +274,9 @@
                         $shortcuts = "";
                         $latestSectionTS = 0;
                         ?>
+                        <div class="{{ $note->is_signed_by_hcp ? 'note-signed-by-hcp' : '' }}">
                         @include('app.patient.note.note-section-list')
+                        </div>
                     </div>
                 </div>
 

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

@@ -227,6 +227,7 @@
                 $(document)
                     .off('mousedown.enable-edit', '.note-section:not(.edit)')
                     .on('mousedown.enable-edit', '.note-section:not(.edit)', function(e) {
+                        if($(this).closest('.note-signed-by-hcp').length) return;
                         e.stopPropagation();
                         e.preventDefault();
                         $(this).find('.edit-trigger').first().click();