latest commit 17-05-2025

This commit is contained in:
vadivelJ96 2025-05-17 17:13:17 +05:30
parent 52d96bf4a9
commit 3d89cb6826

View File

@ -716,7 +716,7 @@
<div class="modal-footer"> <div class="modal-footer">
<span style="min-width: 150px; max-width: 150px;"> <span style="min-width: 150px; max-width: 150px;">
<select class="form-control select2" name="remark" id="remarkInFormId" required> <select class="form-control " name="remark" id="remarkInFormId" required>
<option value="">Select</option> <option value="">Select</option>
<option value="noRemark">No Remark</option> <option value="noRemark">No Remark</option>
<option value="accepted">Accepted</option> <option value="accepted">Accepted</option>
@ -1219,6 +1219,7 @@
$('#dwnldReportCommentsId').text(reportComments); $('#dwnldReportCommentsId').text(reportComments);
$('#dwnldGradeId').text(gradeRange); $('#dwnldGradeId').text(gradeRange);
$('#dwnldTimeId').text(reportTime); $('#dwnldTimeId').text(reportTime);
$('#remarkInFormId').val(remark);
if (sandType.trim().toLowerCase() == "silica sand") { if (sandType.trim().toLowerCase() == "silica sand") {
@ -1945,8 +1946,13 @@
<!-- remark onchange --> <!-- remark onchange -->
<script> <script>
$(document).ready(function(){
$('#remarkInFormId').change(function() { $('#remarkInFormId').change(function() {
let remark = $(this).val(); let remark = $(this).val();
$('#dwnldAcceptedId').text(""); $('#dwnldAcceptedId').text("");
@ -1966,6 +1972,10 @@
$('#reportNotice').text("* Please save the changes to download"); $('#reportNotice').text("* Please save the changes to download");
}) })
})
</script> </script>
<!-- onchange of month submit will happen --> <!-- onchange of month submit will happen -->
@ -2036,12 +2046,7 @@
dropdownParent: $('#fullscreenDiv') dropdownParent: $('#fullscreenDiv')
}); });
// Initialize Select2 when the modal is shown inside full screen
$('#downloadLabReportModel,').on('shown.bs.modal', function () {
$('.select2').select2({
dropdownParent: $(this) // This ensures Select2 works in the modal
});
});
}); });