mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
linting fixes
This commit is contained in:
parent
f8e0de1ea9
commit
ec7d0db843
7 changed files with 24 additions and 22 deletions
|
@ -134,8 +134,10 @@ let BookWyrm = new class {
|
|||
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 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);
|
||||
|
|
Loading…
Reference in a new issue