Update table on dropdown change for index
parent
9ba5511fbb
commit
1388891ef5
|
@ -40,17 +40,24 @@ async function initializeForm() {
|
||||||
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
||||||
await Form.populateTeams(teamDropdown, sportDropdown.value);
|
await Form.populateTeams(teamDropdown, sportDropdown.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seasonDropdown.onchange = loadTable;
|
||||||
|
|
||||||
sportDropdown.onchange = async () => {
|
sportDropdown.onchange = async () => {
|
||||||
await Form.populateGenders(genderDropdown, sportDropdown.value)
|
await Form.populateGenders(genderDropdown, sportDropdown.value)
|
||||||
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
||||||
await Form.populateTeams(teamDropdown, sportDropdown.value);
|
await Form.populateTeams(teamDropdown, sportDropdown.value);
|
||||||
|
loadTable();
|
||||||
};
|
};
|
||||||
|
|
||||||
genderDropdown.onchange = async () => {
|
genderDropdown.onchange = async () => {
|
||||||
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
await Form.populateDivisions(divisionDropdown, sportDropdown.value, genderDropdown.value);
|
||||||
|
loadTable();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
divisionDropdown.onchange = loadTable;
|
||||||
|
teamDropdown.onchange = loadTable;
|
||||||
|
|
||||||
loadTable();
|
loadTable();
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue