Commit afc75493 authored by Arnaud Bey's avatar Arnaud Bey

fix export form

parent db4e0dbd
let transcrCheckbox = document.querySelector('#export_transcriptions')
let xslCheckbox = document.querySelector('#export_transcriptions_apply_xsl')
let metadatasCheckbox = document.querySelector('#export_transcriptions_metadatas')
transcrCheckbox.addEventListener('change', () => {
if (!this.checked) {
xslCheckbox.checked = false
metadatasCheckbox.checked = false
}
})
xslCheckbox.addEventListener('change', () => {
uncheckSub(this)
})
metadatasCheckbox.addEventListener('change', () => {
uncheckSub(this)
})
function uncheckSub(checkbox) {
if (checkbox.checked) {
if (!transcrCheckbox.checked) {
checkbox.checked = false
}
}
}
\ No newline at end of file
......@@ -18,5 +18,6 @@
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('build/js/project-export.js') }}"></script>
<script src="{{ asset('build/js/submit-disable.js') }}"></script>
{% endblock %}
......@@ -19,6 +19,7 @@ Encore
.addEntry('js/account', './assets/js/account.js')
.addEntry('js/project-media', './assets/js/project-media.js')
.addEntry('js/submit-disable', './assets/js/submit-disable.js')
.addEntry('js/project-export', './assets/js/project-export.js')
.addEntry('js/transcription', './assets/js/transcription.js')
.addEntry('js/platform', './assets/js/platform.js')
.addEntry('js/editorial-content', './assets/js/editorial-content.js')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment