Arise (RA-1 & RA-2 form changes)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m40s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m40s
Details
This commit is contained in:
parent
3dece0fefb
commit
2318ef7dd5
|
|
@ -661,42 +661,16 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var today = new Date();
|
||||||
|
var dd = String(today.getDate()).padStart(2, '0');
|
||||||
|
var mm = String(today.getMonth() + 1).padStart(2, '0');
|
||||||
|
var yyyy = today.getFullYear();
|
||||||
|
today = yyyy + '-' + mm + '-' + dd;
|
||||||
|
|
||||||
var today = new Date(); // keep as Date object
|
var recordDateField = document.getElementById('field-plan_date');
|
||||||
|
recordDateField.setAttribute('min', today);
|
||||||
var dd = String(today.getDate()).padStart(2, '0');
|
|
||||||
var mm = String(today.getMonth() + 1).padStart(2, '0');
|
|
||||||
var yyyy = today.getFullYear();
|
|
||||||
|
|
||||||
// formatted string (only if needed)
|
|
||||||
var todayFormatted = yyyy + '-' + mm + '-' + dd;
|
|
||||||
|
|
||||||
var recordDateField = document.getElementById('field-plan_date');
|
|
||||||
|
|
||||||
// 👉 First day of current month
|
|
||||||
let minDateObj = new Date(today.getFullYear(), today.getMonth(), 1);
|
|
||||||
|
|
||||||
// 👉 Last day of (current month + 2 months)
|
|
||||||
let maxDateObj = new Date(today.getFullYear(), today.getMonth() + 3, 0);
|
|
||||||
|
|
||||||
// Convert to YYYY-MM-DD
|
|
||||||
let minDate = minDateObj.toISOString().split('T')[0];
|
|
||||||
let maxDate = maxDateObj.toISOString().split('T')[0];
|
|
||||||
|
|
||||||
// Apply
|
|
||||||
recordDateField.min = minDate;
|
|
||||||
recordDateField.max = maxDate;
|
|
||||||
|
|
||||||
// (Optional) set default value = today
|
|
||||||
recordDateField.value = todayFormatted;
|
|
||||||
|
|
||||||
var executionDateField = document.getElementById('execution-plan_date');
|
var executionDateField = document.getElementById('execution-plan_date');
|
||||||
//executionDateField.setAttribute('min', today);
|
|
||||||
|
|
||||||
// $('.edit-btn').click(function() {
|
|
||||||
// var executionexeField = document.getElementById('execution-record_date');
|
|
||||||
// executionexeField.setAttribute('min', executionDateField.value);
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -613,7 +613,7 @@
|
||||||
today = yyyy + '-' + mm + '-' + dd;
|
today = yyyy + '-' + mm + '-' + dd;
|
||||||
|
|
||||||
var recordDateField = document.getElementById('field-plan_date');
|
var recordDateField = document.getElementById('field-plan_date');
|
||||||
//recordDateField.setAttribute('min', today);
|
recordDateField.setAttribute('min', today);
|
||||||
|
|
||||||
var executionDateField = document.getElementById('execution-plan_date');
|
var executionDateField = document.getElementById('execution-plan_date');
|
||||||
//executionDateField.setAttribute('min', today);
|
//executionDateField.setAttribute('min', today);
|
||||||
|
|
|
||||||
|
|
@ -554,6 +554,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Execution Part Ends");
|
||||||
})
|
})
|
||||||
|
|
||||||
$('#report-form').on('submit', function(event) {
|
$('#report-form').on('submit', function(event) {
|
||||||
|
|
@ -652,41 +653,16 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var today = new Date(); // keep as Date object
|
var today = new Date();
|
||||||
|
var dd = String(today.getDate()).padStart(2, '0');
|
||||||
|
var mm = String(today.getMonth() + 1).padStart(2, '0');
|
||||||
|
var yyyy = today.getFullYear();
|
||||||
|
today = yyyy + '-' + mm + '-' + dd;
|
||||||
|
|
||||||
var dd = String(today.getDate()).padStart(2, '0');
|
var recordDateField = document.getElementById('field-plan_date');
|
||||||
var mm = String(today.getMonth() + 1).padStart(2, '0');
|
recordDateField.setAttribute('min', today);
|
||||||
var yyyy = today.getFullYear();
|
|
||||||
|
|
||||||
// formatted string (only if needed)
|
|
||||||
var todayFormatted = yyyy + '-' + mm + '-' + dd;
|
|
||||||
|
|
||||||
var recordDateField = document.getElementById('field-plan_date');
|
|
||||||
|
|
||||||
// 👉 First day of current month
|
|
||||||
let minDateObj = new Date(today.getFullYear(), today.getMonth(), 1);
|
|
||||||
|
|
||||||
// 👉 Last day of (current month + 2 months)
|
|
||||||
let maxDateObj = new Date(today.getFullYear(), today.getMonth() + 3, 0);
|
|
||||||
|
|
||||||
// Convert to YYYY-MM-DD
|
|
||||||
let minDate = minDateObj.toISOString().split('T')[0];
|
|
||||||
let maxDate = maxDateObj.toISOString().split('T')[0];
|
|
||||||
|
|
||||||
// Apply
|
|
||||||
recordDateField.min = minDate;
|
|
||||||
recordDateField.max = maxDate;
|
|
||||||
|
|
||||||
// (Optional) set default value = today
|
|
||||||
recordDateField.value = todayFormatted;
|
|
||||||
|
|
||||||
var executionDateField = document.getElementById('execution-plan_date');
|
var executionDateField = document.getElementById('execution-plan_date');
|
||||||
//executionDateField.setAttribute('min', today);
|
|
||||||
|
|
||||||
// $('.edit-btn').click(function() {
|
|
||||||
// var executionexeField = document.getElementById('execution-record_date');
|
|
||||||
// executionexeField.setAttribute('min', executionDateField.value);
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -610,22 +610,9 @@
|
||||||
today = yyyy + '-' + mm + '-' + dd;
|
today = yyyy + '-' + mm + '-' + dd;
|
||||||
|
|
||||||
var recordDateField = document.getElementById('field-plan_date');
|
var recordDateField = document.getElementById('field-plan_date');
|
||||||
//recordDateField.setAttribute('min', today);
|
recordDateField.setAttribute('min', today);
|
||||||
|
|
||||||
var executionDateField = document.getElementById('execution-plan_date');
|
var executionDateField = document.getElementById('execution-plan_date');
|
||||||
//executionDateField.setAttribute('min', today);
|
|
||||||
|
|
||||||
// $('.edit-btn').click(function() {
|
|
||||||
// var executionexeField = document.getElementById('execution-record_date');
|
|
||||||
// executionexeField.setAttribute('min', executionDateField.value);
|
|
||||||
// });
|
|
||||||
|
|
||||||
$('.edit-btn').click(function() {
|
|
||||||
var executionexeField = document.getElementById('execution-execution_date');
|
|
||||||
executionexeField.setAttribute('min', executionDateField.value);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
executionDateField.addEventListener('change', function() {
|
executionDateField.addEventListener('change', function() {
|
||||||
console.log('gg');
|
console.log('gg');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue