mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
adjust commenting on js file
This commit is contained in:
parent
3003b103e4
commit
48fc85c761
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue