diff options
author | ThibG <thib@sitedethib.com> | 2020-12-14 09:37:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 09:37:58 +0100 |
commit | a7e819b8a8de25414324e354baa62e9abbd3e8c4 (patch) | |
tree | b60c58a44f31d3782da5eace1fa86d17b77270d9 /app/javascript/packs | |
parent | 4fd306200396a17c030c53483ccd7faa6c2f7291 (diff) |
Fix dynamic updating of “Bootstrap timeline accounts” admin setting (#15325)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/admin.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/packs/admin.js b/app/javascript/packs/admin.js index 65b8dc040..1c44fb45b 100644 --- a/app/javascript/packs/admin.js +++ b/app/javascript/packs/admin.js @@ -57,8 +57,10 @@ const onEnableBootstrapTimelineAccountsChange = (target) => { bootstrapTimelineAccountsField.disabled = !target.checked; if (target.checked) { bootstrapTimelineAccountsField.parentElement.classList.remove('disabled'); + bootstrapTimelineAccountsField.parentElement.parentElement.classList.remove('disabled'); } else { bootstrapTimelineAccountsField.parentElement.classList.add('disabled'); + bootstrapTimelineAccountsField.parentElement.parentElement.classList.add('disabled'); } } }; |