#18 program : really fix multi tags filter
This commit is contained in:
parent
ea1a07a279
commit
7879d17d54
1 changed files with 5 additions and 3 deletions
|
|
@ -47,7 +47,7 @@
|
|||
nextClosestNode.node.scrollIntoView({ behavior: 'smooth' });
|
||||
},
|
||||
getFilter(string) {
|
||||
return string.split('—')[1]
|
||||
return string.split('—')[1].trim()
|
||||
}
|
||||
}"
|
||||
>
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
class="sessions sessions--detailed"
|
||||
x-init="
|
||||
scrollToNextClosestDate()
|
||||
console.log(getFilter(tab))
|
||||
|
||||
"
|
||||
>
|
||||
<?php
|
||||
|
|
@ -147,7 +147,9 @@
|
|||
$formatter = new IntlDateFormatter('fr_FR', IntlDateFormatter::NONE, IntlDateFormatter::NONE);
|
||||
$formattedDate = $formatter->formatObject($date, "d MMMM");
|
||||
?>
|
||||
<template x-if="tab === 'Calendrier' || ('<?= $session['categories'] ?>'.length > 0 && '<?= $session['categories'] ?>'.includes(getFilter(tab)))">
|
||||
<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'] ?>">
|
||||
<div class="left-column">
|
||||
<div class="session__info">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue