Remove loading indicator at the right time

This commit is contained in:
Lavender Perry 2021-07-18 18:42:32 -07:00
parent 9a39bf1bea
commit 61187f27e7
Signed by untrusted user: elle
GPG key ID: EF8E44AF715C28A0

20
main.js
View file

@ -38,22 +38,22 @@ fetch(datablase + "allTeams").then(function(response) {
results.style.display = "block" results.style.display = "block"
// Get shadowed ready for display // Get shadowed ready for display
display_teams(ttShadows, gameTeams, results_shadowed) display_teams(ttShadows, gameTeams, results_shadowed)
// Get FK results ready for display
display_teams(teamTotal, teams, fkresults)
display_teams(ttShadows, teams, fkresults_shadowed)
// Set the input function for & display the options form
options.oninput = optionsInputHandler
options.style.display = "block"
// Remove the loading indicator
progress.remove()
}) })
} else { } else {
aerror() aerror()
} }
}) })
// Get FK results ready for display
display_teams(teamTotal, teams, fkresults)
display_teams(ttShadows, teams, fkresults_shadowed)
}) })
// Set the input function for & display the options form
options.oninput = optionsInputHandler
options.style.display = "block"
progress.remove()
} else { } else {
aerror() aerror()
} }