Commit 86a9e15e authored by Arnaud Bey's avatar Arnaud Bey

use oldschool (but working) js syntax

parent afc75493
......@@ -2,18 +2,18 @@ let transcrCheckbox = document.querySelector('#export_transcriptions')
let xslCheckbox = document.querySelector('#export_transcriptions_apply_xsl')
let metadatasCheckbox = document.querySelector('#export_transcriptions_metadatas')
transcrCheckbox.addEventListener('change', () => {
transcrCheckbox.addEventListener('change', function () {
if (!this.checked) {
xslCheckbox.checked = false
metadatasCheckbox.checked = false
}
})
xslCheckbox.addEventListener('change', () => {
xslCheckbox.addEventListener('change', function () {
uncheckSub(this)
})
metadatasCheckbox.addEventListener('change', () => {
metadatasCheckbox.addEventListener('change', function () {
uncheckSub(this)
})
......
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