mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
schedule: fix popover for non jev22 conferences
This commit is contained in:
parent
0378cdbee6
commit
cd5b5f694b
1 changed files with 4 additions and 4 deletions
|
@ -49,9 +49,9 @@ function closeEventDetails(e) {
|
|||
window.scrollLock = false;
|
||||
}
|
||||
|
||||
const acronym = window.location.pathname.split('/')[1];
|
||||
var previousTitle = "";
|
||||
function showEventDetails(e, data, force = false) {
|
||||
const acronym = "jev22";
|
||||
if (!force && (data.type || previousTitle == data.title)) {
|
||||
return;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ function showEventDetails(e, data, force = false) {
|
|||
}
|
||||
|
||||
document.getElementById("modal-title").innerHTML =
|
||||
data.title + ('subtitle' in data && `<br/><small>${data.subtitle || ''}`);
|
||||
data.title + ('subtitle' in data ? `<br/><small>${data.subtitle || ''}` : '');
|
||||
document.getElementById("modal-data").innerHTML = `
|
||||
<dt>Origin:</dt>
|
||||
<dd><a class="a" href="${data.url}" alt="Details" target="_blank">${data.url}</a></dd>
|
||||
|
@ -85,8 +85,8 @@ function showEventDetails(e, data, force = false) {
|
|||
}
|
||||
window.scrollLock = true;
|
||||
previousTitle = data.title;
|
||||
// fetch additional data
|
||||
if (!force) {
|
||||
// fetch additional data, currently disabled till we have a global config parameter
|
||||
if (false && !force) {
|
||||
fetchAdditionalData(data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue