소스 검색

PMHx - prevent multi init

Vijayakrishnan 3 년 전
부모
커밋
65fcfbdc8b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      resources/views/app/patient/segment-templates/past_medical_history/edit.blade.php

+ 2 - 0
resources/views/app/patient/segment-templates/past_medical_history/edit.blade.php

@@ -263,6 +263,8 @@ for ($i = 0; $i < count($fields); $i++) {
                 }
             });
 
+            window.segmentInitializers.<?= !!@$segment ? $segment->segmentTemplate->internal_name : $segmentInternalName ?> = function() {};
+
         };
 
     }).call(window);