Réparer les scripts intégrés aux vues
This commit is contained in:
parent
63224d8b06
commit
64ce1285aa
12 changed files with 112 additions and 97 deletions
|
|
@ -56,8 +56,8 @@ if (!empty($litter['birth_date'])) {
|
|||
</form>
|
||||
<script>
|
||||
document.getElementById('litterAnimalSearch')?.addEventListener('input', event => {
|
||||
const query = event.target.value.trim().toLocaleLowerCase( < ? = json_encode(I18n::locale() === 'fr' ?
|
||||
'fr' : 'en') ? > );
|
||||
const query = event.target.value.trim().toLocaleLowerCase( <?= json_encode(I18n::locale() === 'fr' ?
|
||||
'fr' : 'en') ?> );
|
||||
document.querySelectorAll('.litter-animal-choice').forEach(choice => {
|
||||
choice.classList.toggle('d-none', query !== '' && !choice.dataset.search.includes(query));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue