about summary refs log tree commit diff
path: root/app/javascript/packs
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-14 09:37:58 +0100
committerGitHub <noreply@github.com>2020-12-14 09:37:58 +0100
commita7e819b8a8de25414324e354baa62e9abbd3e8c4 (patch)
treeb60c58a44f31d3782da5eace1fa86d17b77270d9 /app/javascript/packs
parent4fd306200396a17c030c53483ccd7faa6c2f7291 (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.js2
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');
     }
   }
 };