diff --git a/static/js/move_to_month.js b/static/js/move_to_month.js new file mode 100644 index 0000000..6cffa99 --- /dev/null +++ b/static/js/move_to_month.js @@ -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(); \ No newline at end of file diff --git a/templates/edit_my_list.html b/templates/edit_my_list.html index a77821f..bce7adf 100644 --- a/templates/edit_my_list.html +++ b/templates/edit_my_list.html @@ -55,19 +55,31 @@ - -