#18 program : fix multi tags filter
This commit is contained in:
parent
74b9433124
commit
ea1a07a279
1 changed files with 5 additions and 1 deletions
|
|
@ -45,6 +45,9 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
nextClosestNode.node.scrollIntoView({ behavior: 'smooth' });
|
nextClosestNode.node.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
},
|
||||||
|
getFilter(string) {
|
||||||
|
return string.split('—')[1]
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
|
@ -135,6 +138,7 @@
|
||||||
class="sessions sessions--detailed"
|
class="sessions sessions--detailed"
|
||||||
x-init="
|
x-init="
|
||||||
scrollToNextClosestDate()
|
scrollToNextClosestDate()
|
||||||
|
console.log(getFilter(tab))
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<?php
|
<?php
|
||||||
|
|
@ -143,7 +147,7 @@
|
||||||
$formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::NONE, IntlDateFormatter::NONE);
|
$formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::NONE, IntlDateFormatter::NONE);
|
||||||
$formattedDate = $formatter->formatObject($date, "d MMMM");
|
$formattedDate = $formatter->formatObject($date, "d MMMM");
|
||||||
?>
|
?>
|
||||||
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && tab.includes('<?= $session['categories'] ?>'))">
|
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && '<?= $session['categories'] ?>'.includes(getFilter(tab)))">
|
||||||
<li id="<?= Str::slug($session['title']) ?>" class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>" data-date="<?= $session['date'] ?>">
|
<li id="<?= Str::slug($session['title']) ?>" class="collapsable__item--padding session grid js-link" style="--color: <?= $session['color'] ?>" data-date="<?= $session['date'] ?>">
|
||||||
<div class="left-column">
|
<div class="left-column">
|
||||||
<div class="session__info">
|
<div class="session__info">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue