Преглед на файлове

No "regenerate cc" if opened directly

Vijayakrishnan преди 3 години
родител
ревизия
90e6db162d
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      resources/views/app/patient/problems-center.blade.php

+ 2 - 0
resources/views/app/patient/problems-center.blade.php

@@ -721,6 +721,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
                     return false;
                 });
 
+            @if($patient->core_note_id !== $note->id)
             parentSegment.find('.regenerate-cc')
                 .off('click.regenerate-cc')
                 .on('click.regenerate-cc', function () {
@@ -743,6 +744,7 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
 
                     return false;
                 });
+            @endif
 
             initStagSuggest();