feat(ShowEnvelope): Standarddatum nach 3 Tagen setzen
This commit is contained in:
parent
83794d4bbc
commit
5117a66c81
@ -149,6 +149,12 @@
|
||||
@if (!isReadOnly)
|
||||
{
|
||||
<script nonce="@nonce">
|
||||
|
||||
const dateInput = document.getElementById('readonly-date-valid');
|
||||
const today = new Date();
|
||||
const threeDaysFromNow = new Date(today.setDate(today.getDate() + 3)).toISOString().split('T')[0];
|
||||
dateInput.value = threeDaysFromNow;
|
||||
|
||||
document.getElementById('readonly-send').addEventListener('click', async () => {
|
||||
const receiverMail = document.getElementById('readonly-receiver-mail');
|
||||
const dateValid = document.getElementById('readonly-date-valid');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user