]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/shelf-sort.js
Rolled tri-layout to page edit and book-create
[bookstack] / resources / assets / js / components / shelf-sort.js
index 59ac712a4d726600a604e9d497780ff5f897b0b5..86fb5e143b142c310e30077bc302676c6638d515 100644 (file)
@@ -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