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
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue