diff --git a/edit-mode/function/reportActivity.js b/edit-mode/function/reportActivity.js index e9d58aa..c0771f6 100644 --- a/edit-mode/function/reportActivity.js +++ b/edit-mode/function/reportActivity.js @@ -588,6 +588,10 @@ $(document).ready(function () { assignMaterialId = $(this).data('id'); materialName = $(this).data('material-name'); + var attributeString = this.outerHTML; + if (attributeString.includes('"=""')) { + materialName = materialName + '"'; + } // console.log(" okeee ",{ assignMaterialId, activityId, materialName }); $("#report_activity_material_title").html(`Report Activity Actual ${materialName}`) $("#modal_report_activity").hide(); @@ -619,6 +623,10 @@ $(document).ready(function () { $("#table_report").on("click", ".btn-lihat-plan", function () { assignMaterialId = $(this).data('id'); materialName = $(this).data('material-name'); + var attributeString = this.outerHTML; + if (attributeString.includes('"=""')) { + materialName = materialName + '"'; + } // console.log(" okeee ",{ assignMaterialId, activityId, materialName }); $("#report_activity_material_title").html(`Report Activity Plan ${materialName}`) $("#modal_report_activity").hide();