|
@@ -297,7 +297,9 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
|
|
|
$(this).text('Back to Read Mode');
|
|
|
$('#goals-center-{{$note->id}} .point-table').removeClass('read').addClass('edit');
|
|
|
} else {
|
|
|
- refreshDynamicStagPopup();
|
|
|
+ let url = $(this).closest('.stag-popup').attr('stag-popup-key');
|
|
|
+ if(url.indexOf('forceReadMode') === -1) url += '&forceReadMode=1';
|
|
|
+ refreshDynamicStagPopup(url);
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
@@ -305,7 +307,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
|
|
|
buttonContainer.insertAfter(titleElem);
|
|
|
|
|
|
<?php
|
|
|
- if(@$note && !$note->is_signed_by_hcp) { // auto-open edit mode
|
|
|
+ if(@$note && !$note->is_signed_by_hcp && !request()->input('forceReadMode')) { // auto-open edit mode
|
|
|
?>
|
|
|
button.trigger('click');
|
|
|
<?php
|