瀏覽代碼

Prevent the old "section_script" from executing on visit notes

Vijayakrishnan 3 年之前
父節點
當前提交
f2d0dda067

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

@@ -1,3 +1,4 @@
+<div id="note-section-list">
 <?php $canvasData = json_decode($patient->canvas_data, true); ?>
 <?php $previousHeading = null; ?>
 @foreach($note->sections as $section)
@@ -24,4 +25,5 @@ if(!empty($previousHeading)) {
     echo '</div></div>'; // <!-- close any open parent section -->
 }
 ?>
+</div>
 @include('app.patient.note.section_script')

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

@@ -186,7 +186,7 @@
             });
         }
 
-        addMCInitializer('note-sections-list', init);
+        addMCInitializer('note-sections-list', init, '#note-section-list');
 
     })();
 </script>