zmiany w edycji listy przez usera

This commit is contained in:
Mateusz Gruszczyński
2025-08-15 13:01:00 +02:00
parent 5256e9d17b
commit 977b8630fb
2 changed files with 35 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
function updateMoveToMonth() {
const year = document.getElementById('move_to_month_year').value;
const month = document.getElementById('move_to_month_month').value;
document.getElementById('move_to_month').value = `${year}-${month}`;
}
document.getElementById('move_to_month_year').addEventListener('change', updateMoveToMonth);
document.getElementById('move_to_month_month').addEventListener('change', updateMoveToMonth);
updateMoveToMonth();