|
@@ -223,12 +223,12 @@ parentSegment.find('#frm-add-{{$label}}')
|
|
|
let payload = {};
|
|
|
form.serializeArray().map(x => {payload[x.name] = x.value;});
|
|
|
@if($patient->core_note_id !== $note->id)
|
|
|
- if(!!reviewContent) {
|
|
|
+ if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
|
|
|
payload.childReviewData = JSON.stringify({
|
|
|
value: reviewContent
|
|
|
})
|
|
|
}
|
|
|
- if(!!planContent) {
|
|
|
+ if(!!planContent && $.trim($('<div/>').html(planContent).text())) {
|
|
|
payload.childPlanData = JSON.stringify({
|
|
|
value: planContent
|
|
|
})
|
|
@@ -327,12 +327,12 @@ parentSegment.find('.frm-edit-{{$label}}')
|
|
|
let payload = {};
|
|
|
form.serializeArray().map(x => {payload[x.name] = x.value;});
|
|
|
@if($patient->core_note_id !== $note->id)
|
|
|
- if(!!reviewContent) {
|
|
|
+ if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
|
|
|
payload.childReviewData = JSON.stringify({
|
|
|
value: reviewContent
|
|
|
})
|
|
|
}
|
|
|
- if(!!planContent) {
|
|
|
+ if(!!planContent && $.trim($('<div/>').html(planContent).text())) {
|
|
|
payload.childPlanData = JSON.stringify({
|
|
|
value: planContent
|
|
|
})
|