mirror of
https://github.com/ellite/Wallos.git
synced 2026-08-07 05:45:07 -04:00
feat: set todays date on start subscription field for new subscriptions by default (#848)
This commit is contained in:
1 parent
e2df8f7e24
commit
d3fd9387d3
2 files changed
+5
-1
No files matched your search
@@ -161,6 +161,10 @@ function openEditSubscription(event, id) {
|
||||
function addSubscription() {
|
||||
resetForm();
|
||||
const modal = document.getElementById('subscription-form');
|
||||
|
||||
const startDate = document.querySelector("#start_date");
|
||||
startDate.value = new Date().toISOString().split('T')[0];
|
||||
|
||||
modal.classList.add("is-open");
|
||||
const body = document.querySelector('body');
|
||||
body.classList.add('no-scroll');
|
||||
|
||||
Reference in new issue
Block a user