Remove version change handling in templates as it is already implemented in CreateJobForm.js

This commit is contained in:
Patrick Jentsch
2022-10-04 15:32:31 +02:00
parent 0e982e0749
commit 40348cebe1
2 changed files with 3 additions and 29 deletions

View File

@@ -123,15 +123,3 @@
</div>
</div>
{% endblock modals %}
{% block scripts %}
{{ super() }}
<script>
let versionField = document.querySelector('#add-job-form-version');
versionField.addEventListener('change', (event) => {
let url = new URL(window.location.href);
url.search = `?version=${event.target.value}`;
window.location.href = url.toString();
});
</script>
{% endblock scripts %}