{I" class:ETI"ProcessedAsset;FI"logical_path;TI"#alchemy/alchemy.page_sorter.js;FI" pathname;TI"q/Users/tvd/.rvm/gems/ruby-2.1.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.page_sorter.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+8úSTI" length;Ti¸I" digest;TI"%fd1fcd992fe6c522d296877d0f9bcd75;FI" source;TI"¸if (typeof(Alchemy) === 'undefined') { var Alchemy = {}; } (function($) { var PageSorter = {}; $.extend(Alchemy, PageSorter); Alchemy.PageSorter = { init: 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) { var params = { set: JSON.stringify($sortables.nestedSortable('toHierarchy')) }; $.post(Alchemy.routes.order_admin_pages_path, params); return false; }); $('#sort_panel .button').click(Alchemy.pleaseWaitOverlay); Alchemy.PageSorter.disableButton(); }, disableButton: function() { var $buttonLink = $('#page_sorting_button a'); $buttonLink.removeAttr('onclick'); $('#page_sorting_button').addClass('active'); $buttonLink.css({ cursor: 'default' }); } } })(jQuery); ;TI"dependency_digest;TI"%6b912ca47618bc21cfb3ac1167e671e8;FI"required_paths;T[I"q/Users/tvd/.rvm/gems/ruby-2.1.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.page_sorter.js;FI"dependency_paths;T[{I" path;TI"q/Users/tvd/.rvm/gems/ruby-2.1.3/gems/alchemy_cms-3.0.2/app/assets/javascripts/alchemy/alchemy.page_sorter.js;FI" mtime;TI"2014-10-31T22:08:08+01:00;TI" digest;TI"%fd1fcd992fe6c522d296877d0f9bcd75;FI" _version;TI"%0b3bb70d73e816e032b56c9484a86632;F