|
@@ -46,10 +46,11 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
$point->lastChildReview->data = json_decode($point->lastChildReview->data, true);
|
|
|
$contentData = $point->lastChildReview->data;
|
|
|
}
|
|
|
+$submitFormUrl = '/api/visitPoint/upsertChildReview';
|
|
|
|
|
|
?>
|
|
|
<div visit-moe close-on-save close-on-cancel class="d-block p-3">
|
|
|
- <form id="visitNoteForm" show url="/api/visitPoint/upsertChildReview" class="mcp-theme-1">
|
|
|
+ <form id="visitNoteForm" show url="{{ $submitFormUrl }}" class="mcp-theme-1">
|
|
|
<input type="hidden" name="uid" value="<?= $point->uid ?>">
|
|
|
<input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
@@ -433,7 +434,7 @@ if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
// PHQ
|
|
|
function phqSubmitChanges() {
|
|
|
var form = $('#visitNoteForm');
|
|
|
- $.post('/api/visitPoint/upsertNoteSingleton', form.serializeArray(), function(response) {}, 'json');
|
|
|
+ $.post('{{ $submitFormUrl }}', form.serializeArray(), function(response) {}, 'json');
|
|
|
}
|
|
|
|
|
|
function phqUpdateData(object) {
|