fix document ready

This commit is contained in:
towards-a-new-leftypol 2021-06-27 01:40:57 +00:00
parent c44bbde511
commit f4a785100d
11 changed files with 12 additions and 11 deletions

View file

@ -26,7 +26,7 @@ function updatePreviewWithSelected(img, select) {
img.attr("src", getFlagUrl(select.find(":selected").val()));
}
onready(function(){
$(document).ready(function(){
var flagImg = $('#flag_preview');
var flagSelect = $('#user_flag');
var loaded = loadFlag();