first commit
This commit is contained in:
1
public/assets/js/pages/misc-sortable.js
Executable file
1
public/assets/js/pages/misc-sortable.js
Executable file
@@ -0,0 +1 @@
|
||||
function initNestedSortables(e,t){e=document.querySelectorAll(e);e.length&&e.forEach(e=>{new Sortable(e,t)})}initNestedSortables(".nested-sortable",{group:"nested",ghostClass:"sortable-item-ghost",animation:150,fallbackOnBody:!0,swapThreshold:.65,onStart:function(e){e.item.classList.add("sortable-drag")},onEnd:function(e){e.item.classList.remove("sortable-drag")}}),initNestedSortables(".nested-sortable-handle",{handle:".sort-handle",ghostClass:"sortable-item-ghost",group:"nested",animation:150,fallbackOnBody:!0,swapThreshold:.65});
|
||||
Reference in New Issue
Block a user