master_template/public/assets/js/pages/nestable.init.js
2024-06-10 18:06:58 +05:45

1 line
505 B
JavaScript

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})});