|
@@ -239,9 +239,10 @@
|
|
|
@foreach($note->sections as $section)
|
|
|
<div class="p-3 border-bottom note-section">
|
|
|
<div class="d-flex align-items-start">
|
|
|
- <a class="font-weight-bold mb-2 d-flex align-items-center c-pointer edit-trigger">
|
|
|
+ <a class="font-weight-bold mb-2 d-flex align-items-center c-pointer">
|
|
|
{{$section->sectionTemplate->title}}
|
|
|
<span class="d-none if-not-edit"><i class="fa fa-edit ml-2"></i></span>
|
|
|
+ <span class="edit-trigger"></span>
|
|
|
</a>
|
|
|
<?php $sectionInternalName = $section->sectionTemplate->internal_name; ?>
|
|
|
@include('app/patient/note/_templates-index')
|
|
@@ -591,7 +592,9 @@
|
|
|
|
|
|
$(document)
|
|
|
.off('mousedown.enable-edit', '.note-section:not(.edit)')
|
|
|
- .on('mousedown.enable-edit', '.note-section:not(.edit)', function() {
|
|
|
+ .on('mousedown.enable-edit', '.note-section:not(.edit)', function(e) {
|
|
|
+ e.stopPropagation();
|
|
|
+ e.preventDefault();
|
|
|
$(this).find('.edit-trigger').first().click();
|
|
|
return false;
|
|
|
});
|