mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Updated a whole load more js components
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import Sortable from "sortablejs";
|
||||
import {Component} from "./component";
|
||||
|
||||
class ShelfSort {
|
||||
export class ShelfSort extends Component {
|
||||
|
||||
setup() {
|
||||
this.elem = this.$el;
|
||||
@ -15,7 +16,7 @@ class ShelfSort {
|
||||
|
||||
initSortable() {
|
||||
const scrollBoxes = this.elem.querySelectorAll('.scroll-box');
|
||||
for (let scrollBox of scrollBoxes) {
|
||||
for (const scrollBox of scrollBoxes) {
|
||||
new Sortable(scrollBox, {
|
||||
group: 'shelf-books',
|
||||
ghostClass: 'primary-background-light',
|
||||
|
Reference in New Issue
Block a user