|
|
@ -62,22 +62,14 @@ $(document).ready(function () { |
|
|
|
$('#ra_date_end_activity').prop('disabled', true); |
|
|
|
$('#ra_date_end_activity').prop('disabled', true); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
// $('#ra_date_start_activity').datepicker({
|
|
|
|
|
|
|
|
// format: 'dd-mm-yyyy', // Set the desired format
|
|
|
|
|
|
|
|
// autoclose: true // Close the datepicker when a date is selected
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// $('#ra_date_end_activity').datepicker({
|
|
|
|
|
|
|
|
// format: 'dd-mm-yyyy', // Set the desired format
|
|
|
|
|
|
|
|
// autoclose: true // Close the datepicker when a date is selected
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
$("#ra_date_end_activity").on("change", function () { |
|
|
|
$("#ra_date_end_activity").on("change", function () { |
|
|
|
let valEnd = $(this).val() |
|
|
|
|
|
|
|
let valStart = $('#ra_date_start_activity').val() |
|
|
|
let valStart = $('#ra_date_start_activity').val() |
|
|
|
|
|
|
|
let valEnd = moment($(this).val()); |
|
|
|
const compDate = moment(valEnd).isBefore(moment(valStart)) |
|
|
|
if (moment(valEnd).format('YYYY') >= moment(valStart).format('YYYY')) { |
|
|
|
if (compDate) { |
|
|
|
if (moment(valEnd).isBefore(moment(valStart))) { |
|
|
|
gantt.alert("End Activity Date cannot be lower than Start Activity Date"); |
|
|
|
gantt.alert("End Activity Date cannot be lower than Start Activity Date"); |
|
|
|
|
|
|
|
$('#ra_date_end_activity').val() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -456,7 +448,7 @@ $(document).ready(function () { |
|
|
|
imageFormData.append("ref_id", reportId); |
|
|
|
imageFormData.append("ref_id", reportId); |
|
|
|
imageFormData.append("category", "report_activity"); |
|
|
|
imageFormData.append("category", "report_activity"); |
|
|
|
imageFormData.append("files", image, image.name); |
|
|
|
imageFormData.append("files", image, image.name); |
|
|
|
imageFormData.append("company_name",company_name); |
|
|
|
imageFormData.append("company_name", company_name); |
|
|
|
|
|
|
|
|
|
|
|
if (image.name && image.size) { |
|
|
|
if (image.name && image.size) { |
|
|
|
await axiosInstanceMultipart.post(`${base_url}image/upload`, imageFormData); |
|
|
|
await axiosInstanceMultipart.post(`${base_url}image/upload`, imageFormData); |
|
|
|