|
|
|
@ -88,7 +88,6 @@ $(document).ready(function () {
|
|
|
|
|
$('#report-activity-information-status').attr("class", "badge badge-warning"); |
|
|
|
|
} else if(statusReport == 'done') { |
|
|
|
|
$('#report-activity-information-status').attr("class", "badge badge-success"); |
|
|
|
|
$("#show_form_ra").hide(); |
|
|
|
|
} else if(statusReport == 'open') { |
|
|
|
|
$('#report-activity-information-status').attr("class", "badge badge-primary"); |
|
|
|
|
} |
|
|
|
@ -105,7 +104,17 @@ $(document).ready(function () {
|
|
|
|
|
$("#report-activity-information-start").text(reportStartDate); |
|
|
|
|
$("#report-activity-information-end").text(reportFinishDate); |
|
|
|
|
} |
|
|
|
|
}).DataTable({ |
|
|
|
|
}).on('draw.dt', function () { |
|
|
|
|
// This event handler will be called after the table is redrawn (after AJAX call)
|
|
|
|
|
// Now you can hide the button here based on the statusReport
|
|
|
|
|
const statusReport = tableRa.row(0).data()?.status_activity; |
|
|
|
|
|
|
|
|
|
if (statusReport === 'done') { |
|
|
|
|
$('.btn-lihat-actual').hide(); |
|
|
|
|
} else { |
|
|
|
|
$('.btn-lihat-actual').show(); |
|
|
|
|
} |
|
|
|
|
}).DataTable({ |
|
|
|
|
"processing": true, |
|
|
|
|
"serverSide": true, |
|
|
|
|
"ajax": { |
|
|
|
|