zmiany w edycji listy przez usera

This commit is contained in:
Mateusz Gruszczyński
2025-08-15 13:13:32 +02:00
parent 719735b6d7
commit ac88869f52

View File

@@ -1,7 +1,8 @@
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}`;
const hiddenInput = document.getElementById('move_to_month');
hiddenInput.value = `${year}-${month}`;
}
document.getElementById('move_to_month_year').addEventListener('change', updateMoveToMonth);