forked from mirrors/bookwyrm
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 trigger = event.currentTarget;
|
||||||
let hidden = trigger.closest('.hidden-form').querySelectorAll('.is-hidden')[0];
|
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) {
|
if (hidden) {
|
||||||
this.addRemoveClass(hidden, 'is-hidden', !hidden);
|
this.addRemoveClass(hidden, 'is-hidden', !hidden);
|
||||||
|
|
Loading…
Reference in a new issue