Link to entryList incl count

This commit is contained in:
ostertun
2020-10-29 14:52:36 +01:00
parent 7fd1c1c6e7
commit 0fd09c22a2
6 changed files with 49 additions and 5 deletions

View File

@@ -611,3 +611,27 @@ var addConsoleOpenerToPreloader = function() {
$(button).hide();
}
addConsoleOpenerToPreloader();
function m2s_getLink(type, eventId) {
switch (type) {
case 'entrylist':
return 'https://manage2sail.com/de-DE/event/' + eventId + '#!/entries';
}
return '';
}
function ro_getLink(type, eventId) {
switch (type) {
case 'entrylist':
return 'http://www.raceoffice.org/entrylist.php?eid=' + eventId;
}
return '';
}
function extServiceGetLink(serviceName, type, eventId = '') {
switch (serviceName) {
case 'm2s':
return m2s_getLink(type, eventId);
case 'ro':
return ro_getLink(type, eventId);
}
return '';
}