Browse Source

Fix dynamic updating of “Bootstrap timeline accounts” admin setting (#15325)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
closed-social-v3
ThibG 3 years ago
committed by GitHub
parent
commit
a7e819b8a8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/javascript/packs/admin.js

+ 2
- 0
app/javascript/packs/admin.js View File

@ -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');
}
}
};

Loading…
Cancel
Save