Show first race of selected year by default

This commit is contained in:
Jan Philipp Timme 2017-12-31 17:04:58 +01:00
parent 1bfdd3d543
commit b11e8ff3dc
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,8 @@ preprocessor.load(function(data) {
$("#courseSelection li[data="+raceD1.raceInfo.raceId+"] .courseimagecontainer").append(imageTag); $("#courseSelection li[data="+raceD1.raceInfo.raceId+"] .courseimagecontainer").append(imageTag);
}); });
} }
// Show first race by default
$("#courseSelection li").first().click();
}); });
$(window).resize(function(e) { $(window).resize(function(e) {