Sha256: a498b8fb68ac38c917c0afc497940c465b59b7f7d22f2847e70f5a43e1e03130
Contents?: true
Size: 622 Bytes
Versions: 48
Compression:
Stored size: 622 Bytes
Contents
Alchemy.PageSorter = function() { var $sortables = $('ul#sitemap').find('ul.level_1_children'); $sortables.nestedSortable({ disableNesting: 'no-nest', forcePlaceholderSize: true, handle: '.handle', items: 'li', listType: 'ul', opacity: 0.5, placeholder: 'placeholder', tabSize: 16, tolerance: 'pointer', toleranceElement: '> div' }); $('#save_page_order').click(function(e) { e.preventDefault(); Alchemy.Buttons.disable(this); $.post(Alchemy.routes.order_admin_pages_path, { set: JSON.stringify($sortables.nestedSortable('toHierarchy')) }); }); };
Version data entries
48 entries across 48 versions & 1 rubygems