TanchoToplineCargo/public/assets/js/pages/nestable.init.js

1 line
505 B
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
var nestedSortables=[].slice.call(document.querySelectorAll(".nested-sortable")),nestedSortablesHandles=(nestedSortables&&Array.from(nestedSortables).forEach(function(e){new Sortable(e,{group:"nested",animation:150,fallbackOnBody:!0,swapThreshold:.65})}),[].slice.call(document.querySelectorAll(".nested-sortable-handle")));nestedSortablesHandles&&Array.from(nestedSortablesHandles).forEach(function(e){new Sortable(e,{handle:".handle",group:"nested",animation:150,fallbackOnBody:!0,swapThreshold:.65})});