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
|
|
@ -170,8 +170,8 @@ $prefillCount = max(0, min(20, (int)($_GET['count'] ?? 4)));
|
|||
if (target < list.children.length) {
|
||||
const removedRows = [...list.children].slice(target);
|
||||
if (confirmRemoval && removedRows.some(hasValues) &&
|
||||
!window.confirm( < ? = json_encode(t('litter.reduce_confirm'), JSON_UNESCAPED_UNICODE |
|
||||
JSON_UNESCAPED_SLASHES) ? > )) {
|
||||
!window.confirm( <?= json_encode(t('litter.reduce_confirm'), JSON_UNESCAPED_UNICODE |
|
||||
JSON_UNESCAPED_SLASHES) ?> )) {
|
||||
countInput.value = list.children.length;
|
||||
return;
|
||||
}
|
||||
|
|
@ -190,8 +190,8 @@ $prefillCount = max(0, min(20, (int)($_GET['count'] ?? 4)));
|
|||
const mother = document.getElementById('motherId');
|
||||
const father = document.getElementById('fatherId');
|
||||
const syncExistingChoices = () => {
|
||||
const query = existingSearch?.value.trim().toLocaleLowerCase( < ? = json_encode(I18n::locale() ===
|
||||
'fr' ? 'fr' : 'en') ? > ) || '';
|
||||
const query = existingSearch?.value.trim().toLocaleLowerCase( <?= json_encode(I18n::locale() ===
|
||||
'fr' ? 'fr' : 'en') ?> ) || '';
|
||||
document.querySelectorAll('.existing-kitten-choice').forEach(choice => {
|
||||
const isParent = choice.dataset.animalId === mother?.value || choice.dataset
|
||||
.animalId === father?.value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue