From ac88869f523f02bb2f62af0a7a7996ceb71f4a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 15 Aug 2025 13:13:32 +0200 Subject: [PATCH] zmiany w edycji listy przez usera --- static/js/move_to_month.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/move_to_month.js b/static/js/move_to_month.js index 6cffa99..1700b56 100644 --- a/static/js/move_to_month.js +++ b/static/js/move_to_month.js @@ -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);