X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/f455b317ec1a562363b6ec55f63532246def931b..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