Titans (Oscar Screening Camp) Date Code Change
Specific Folder FTP Upload / ftp-deploy (push) Successful in 35s Details

This commit is contained in:
zeeshan 2026-11-12 16:52:10 +05:30
parent 44429a0b15
commit 365eb69d73
1 changed files with 6 additions and 14 deletions

View File

@ -220,9 +220,7 @@
console.log(hierarchy) console.log(hierarchy)
}) })
$('#field-contact_id').change(function() {
$('#field-speciality').val($('option:selected', this).attr('speciality'))
})
$('#field-contact_id').change(function() { $('#field-contact_id').change(function() {
$('#field-msl_code').val($('option:selected', this).attr('msl_code')) $('#field-msl_code').val($('option:selected', this).attr('msl_code'))
@ -232,9 +230,7 @@
$('#field-contact_id').trigger('change'); $('#field-contact_id').trigger('change');
}); });
$('#field-city,#field-state,#field-departmental_head_name').on('input', function () {
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
});
$('#report-form').on('submit', function(event){ $('#report-form').on('submit', function(event){
@ -273,15 +269,11 @@
}); });
}); });
var today = new Date(); var plandateField = document.getElementById('field-record_date');
var dd = String(today.getDate()).padStart(2, '0'); if (plandateField) {
var mm = String(today.getMonth() + 1).padStart(2, '0'); var today = new Date().toISOString().split('T')[0];
var yyyy = today.getFullYear();
today = yyyy + '-' + mm + '-' + dd;
var plandateField = document.getElementById('field-record_date');
plandateField.setAttribute('max', today); plandateField.setAttribute('max', today);
}
}); });
</script> </script>
</body> </body>