zmiany w edycji listy przez usera
This commit is contained in:
10
static/js/move_to_month.js
Normal file
10
static/js/move_to_month.js
Normal 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();
|
Reference in New Issue
Block a user