mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-26 00:30:02 +08:00
Standardised module loading system & fixed build system
Fixed broken build system in broken webpack version. Also updates module system to standardise on ES6 import/exports, Especially since babel has changed it's 'default' logic for the old module system.
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import "jquery-sortable";
|
||||
|
||||
class ShelfSort {
|
||||
|
||||
@ -9,9 +10,8 @@ class ShelfSort {
|
||||
}
|
||||
|
||||
initSortable() {
|
||||
const sortable = require('jquery-sortable');
|
||||
const placeHolderContent = this.getPlaceholderHTML();
|
||||
|
||||
// TODO - Load sortable at this point
|
||||
return $('.scroll-box').sortable({
|
||||
group: 'shelf-books',
|
||||
exclude: '.instruction,.scroll-box-placeholder',
|
||||
@ -68,4 +68,4 @@ class ShelfSort {
|
||||
|
||||
}
|
||||
|
||||
module.exports = ShelfSort;
|
||||
export default ShelfSort;
|
Reference in New Issue
Block a user