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

@ -79,13 +79,13 @@
document.querySelectorAll('#asm3Form<?= (int)$job['
id '] ?> input[name="mode"]').forEach(el => el.addEventListener('change', () => {
const replace = el.form.mode.value === 'replace';
el.form.confirmation.placeholder = replace ? < ? = json_encode(t('asm3.type_replace'),
JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ? > : < ? = json_encode(t(
'asm3.type_import'), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ? > ;
el.form.querySelector('.confirmation-hint strong').textContent = replace ? < ? =
el.form.confirmation.placeholder = replace ? <?= json_encode(t('asm3.type_replace'),
JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?> : <?= json_encode(t(
'asm3.type_import'), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?> ;
el.form.querySelector('.confirmation-hint strong').textContent = replace ? <?=
json_encode(t('asm3.confirm_replace_phrase'), JSON_UNESCAPED_UNICODE |
JSON_UNESCAPED_SLASHES) ? > : < ? = json_encode(t('asm3.confirm_import_phrase'),
JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ? > ;
JSON_UNESCAPED_SLASHES) ?> : <?= json_encode(t('asm3.confirm_import_phrase'),
JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?> ;
}));
</script><?php elseif ($result):?><details>