Team 3 Changes
Specific Folder FTP Upload / ftp-deploy (push) Successful in 32s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 32s
Details
This commit is contained in:
parent
bf42dbf734
commit
20cd8795ab
|
|
@ -601,47 +601,7 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
function setDateRange() {
|
|
||||||
let today = new Date();
|
|
||||||
|
|
||||||
let currentDay = today.getDate();
|
|
||||||
let currentMonth = today.getMonth();
|
|
||||||
let currentYear = today.getFullYear();
|
|
||||||
|
|
||||||
let lastDayOfMonth = new Date(currentYear, currentMonth + 1, 0).getDate();
|
|
||||||
|
|
||||||
if (currentDay >= 25 || currentDay === lastDayOfMonth) {
|
|
||||||
|
|
||||||
let nextMonthStart = new Date(currentYear, currentMonth + 1, 1);
|
|
||||||
let nextMonthEnd = new Date(currentYear, currentMonth + 2, 0);
|
|
||||||
|
|
||||||
$('#field-plan_date')
|
|
||||||
.attr('min', formatYMD(nextMonthStart))
|
|
||||||
.attr('max', formatYMD(nextMonthEnd))
|
|
||||||
.val(formatYMD(nextMonthStart))
|
|
||||||
.prop('disabled', false);
|
|
||||||
|
|
||||||
// $('#execution-plan_date')
|
|
||||||
// .attr('min', formatYMD(nextMonthStart))
|
|
||||||
// .attr('max', formatYMD(nextMonthEnd))
|
|
||||||
// .val(formatYMD(nextMonthStart))
|
|
||||||
// .prop('disabled', false);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$('#field-plan_date')
|
|
||||||
.val('')
|
|
||||||
.prop('disabled', true);
|
|
||||||
|
|
||||||
// $('#execution-plan_date')
|
|
||||||
// .val('')
|
|
||||||
// .prop('disabled', true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
setDateRange();
|
|
||||||
*/
|
|
||||||
|
|
||||||
function setPlanDateRange() {
|
function setPlanDateRange() {
|
||||||
let today = new Date();
|
let today = new Date();
|
||||||
|
|
||||||
|
|
@ -677,13 +637,9 @@ function setPlanDateRange() {
|
||||||
// Call on page load
|
// Call on page load
|
||||||
setPlanDateRange();
|
setPlanDateRange();
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
// $(function () {
|
|
||||||
// $('#field-plan_date')
|
|
||||||
// .attr('min', '2026-02-01')
|
|
||||||
// .attr('max', '2026-02-28'); // use 29 if leap year
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue