Copd (Voltido Trio Strip Pack POB)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
This commit is contained in:
parent
063d562c11
commit
91b5cc6c29
|
|
@ -354,30 +354,27 @@
|
||||||
|
|
||||||
var recordDateField = document.getElementById('field-record_date');
|
var recordDateField = document.getElementById('field-record_date');
|
||||||
|
|
||||||
var today = new Date();
|
var today = new Date();
|
||||||
var tomorrow = new Date();
|
var tomorrow = new Date();
|
||||||
tomorrow.setDate(today.getDate() + 1);
|
tomorrow.setDate(today.getDate() + 1);
|
||||||
|
|
||||||
function formatDate(date) {
|
function formatDate(date) {
|
||||||
return date.getFullYear() + '-' +
|
return date.getFullYear() + '-' +
|
||||||
String(date.getMonth() + 1).padStart(2, '0') + '-' +
|
String(date.getMonth() + 1).padStart(2, '0') + '-' +
|
||||||
String(date.getDate()).padStart(2, '0');
|
String(date.getDate()).padStart(2, '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
var todayDate = formatDate(today);
|
var todayDate = formatDate(today);
|
||||||
var tomorrowDate = formatDate(tomorrow);
|
var tomorrowDate = formatDate(tomorrow);
|
||||||
|
|
||||||
// 13 August ला फक्त 13 August
|
// 13 August ला फक्त 13 August
|
||||||
recordDateField.setAttribute('min', tomorrowDate);
|
recordDateField.setAttribute('min', '2026-08-13');
|
||||||
recordDateField.setAttribute('max', tomorrowDate);
|
recordDateField.setAttribute('max', todayDate);
|
||||||
|
|
||||||
// 14 August पासून:
|
// 14 August पासून:
|
||||||
// min = 13 August
|
// min = 13 August
|
||||||
// max = today
|
// max = today
|
||||||
if (today.getDate() >= tomorrow.getDate()) {
|
|
||||||
recordDateField.setAttribute('min', tomorrowDate);
|
|
||||||
recordDateField.setAttribute('max', todayDate);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue