Heera/public/assets/js/pages/nestable.init.js
2024-05-16 09:31:08 +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})});