mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-11 06:10:03 +08:00
Ran eslint fix on existing codebase
Had to do some manual fixing of the app.js file due to misplaced comments
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {slideUp, slideDown} from "../services/animations";
|
||||
import {Component} from "./component";
|
||||
import {slideUp, slideDown} from '../services/animations';
|
||||
import {Component} from './component';
|
||||
|
||||
export class ExpandToggle extends Component {
|
||||
|
||||
@ -24,8 +24,8 @@ export class ExpandToggle extends Component {
|
||||
event.preventDefault();
|
||||
|
||||
const matchingElems = document.querySelectorAll(this.targetSelector);
|
||||
for (let match of matchingElems) {
|
||||
this.isOpen ? this.close(match) : this.open(match);
|
||||
for (const match of matchingElems) {
|
||||
this.isOpen ? this.close(match) : this.open(match);
|
||||
}
|
||||
|
||||
this.isOpen = !this.isOpen;
|
||||
@ -34,8 +34,8 @@ export class ExpandToggle extends Component {
|
||||
|
||||
updateSystemAjax(isOpen) {
|
||||
window.$http.patch(this.updateEndpoint, {
|
||||
expand: isOpen ? 'true' : 'false'
|
||||
expand: isOpen ? 'true' : 'false',
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user