diff --git a/html/assets/js/script.js b/html/assets/js/script.js index 90806df28c1f20435577af76615b6eed8ec12b61..f47b424c03713c095f2baf135897a07d928ed10a 100644 --- a/html/assets/js/script.js +++ b/html/assets/js/script.js @@ -544,7 +544,7 @@ function calculateTeam(saison,nt){ var team_flag='<img class="flags" src="./images/flags/xx.svg" title="n/a">'; var team_name=''; } else { - var team_flag='<img class="flags" src="./images/flags/'+team[0].nt+'.svg" title="'+team[0].name.split('(NL)')[0].trim()+'">'; + var team_flag='<img class="flags" src="./images/flags/'+(( team[0].flag ) ? team[0].flag : team[0].nt.toLowerCase())+'.svg" title="'+team[0].name.split('(NL)')[0].trim()+'">'; var team_name='<a href="'+team[0].link+'" target="ultrasoccer">'+team[0].name+'</a>'; }