add comment back to bookwyrm.js

This commit is contained in:
Hugh Rundle 2023-11-21 20:20:11 +11:00
parent 2c9ebba5d7
commit 8ed4a997f8
No known key found for this signature in database
GPG key ID: A7E35779918253F9

View file

@ -332,6 +332,7 @@ let BookWyrm = new (class {
const form = event.currentTarget; const form = event.currentTarget;
const relatedforms = document.querySelectorAll(`.${form.dataset.id}`); const relatedforms = document.querySelectorAll(`.${form.dataset.id}`);
// Toggle class on all related forms.
relatedforms.forEach((relatedForm) => relatedforms.forEach((relatedForm) =>
bookwyrm.addRemoveClass( bookwyrm.addRemoveClass(
relatedForm, relatedForm,