diff --git a/assets/job/add.js b/assets/job/add.js index ac3d3aa..2a3e43d 100644 --- a/assets/job/add.js +++ b/assets/job/add.js @@ -153,8 +153,10 @@ function handleSecretCheckbox(event) { function initEternalCheckbox() { document.querySelector('.lastrun-eternal').addEventListener('click', event => { - document.querySelector('#lastrunselector').prop('disabled', document.querySelector(this).prop('checked')); - document.querySelector('#lastrunselector').prop('value', ''); + let nextrunselector = document.querySelector('#lastrunselector'); + nextrunselector.disabled = event.target.checked; + nextrunselector.placeholder = event.target.checked ? '' : nextrunselector.dataset.placeholder; + nextrunselector.value = ''; }) } diff --git a/templates/job/add.html.twig b/templates/job/add.html.twig index 891f3d5..2ee342b 100644 --- a/templates/job/add.html.twig +++ b/templates/job/add.html.twig @@ -30,7 +30,7 @@