diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index 66fd5a615..0eebc75b2 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -126,19 +126,14 @@ let BookWyrm = new class { /** * Show form. - * + * If the form has already been revealed, there is no '.is-hidden' element + * so this doesn't work as a toggle - use hideForm to hide it again * @param {Event} event * @return {undefined} */ revealForm(event) { let trigger = event.currentTarget; let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0]; - - /** - * if the form has already been revealed, there is no '.is-hidden' element - * so this doesn't really work as a toggle - */ - if (hidden) { this.addRemoveClass(hidden, 'is-hidden', !hidden); }