Réparer les scripts intégrés aux vues

This commit is contained in:
Alexandre NOEL 2026-09-03 23:08:03 +02:00
commit 64ce1285aa
12 changed files with 112 additions and 97 deletions

View file

@ -846,11 +846,11 @@ $mosaicQs['view'] = 'mosaic';
</div>
<script>
const animalListTranslations = < ? = json_encode(['medicalPreview' => t('animals.medical_preview'),
const animalListTranslations = <?= json_encode(['medicalPreview' => t('animals.medical_preview'),
'neverProvided' => t('animals.never_provided'), 'lastUpdate' => t('animals.last_update', ['date' =>
'__DATE__'
])
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ? > ;
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?> ;
(() => {
const zoom = document.getElementById('animalPhotoZoom');
const image = zoom?.querySelector('img');