gitflow-hotfix-stash: extServiceWfn

This commit is contained in:
ostertun
2023-04-28 21:43:49 +02:00
parent a37cf0ea46
commit dcc5428615
5 changed files with 14 additions and 5 deletions

View File

@@ -680,12 +680,21 @@ function ro_getLink(type, eventId, classId) {
}
return '';
}
function wfn_getLink(type, eventId, classId) {
switch (type) {
case 'entrylist':
return 'https://wettfahrten.net/event/' + eventId + '/entrylist?class=' + classId;
}
return '';
}
function extServiceGetLink(serviceName, type, eventId = '', classId = '') {
switch (serviceName) {
case 'm2s':
return m2s_getLink(type, eventId, classId);
case 'ro':
return ro_getLink(type, eventId);
case 'wfn':
return wfn_getLink(type, eventId);
}
return '';
}