X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/131fcae4c761ed2fa5ecc0e42d3e2f5c38f28dd8..7f95b51b00d0d5fa1e7bcf5574f2d58bddcbd504:/resources/assets/js/components/shelf-sort.js diff --git a/resources/assets/js/components/shelf-sort.js b/resources/assets/js/components/shelf-sort.js index 59ac712a4..86fb5e143 100644 --- a/resources/assets/js/components/shelf-sort.js +++ b/resources/assets/js/components/shelf-sort.js @@ -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; \ No newline at end of file +export default ShelfSort; \ No newline at end of file