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

Version Path
alchemy_cms-4.6.7 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.6 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.5 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.5.1 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.5 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.4 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.0.6 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.3 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-3.6.7 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-3.6.6 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.2 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.1 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.6.0 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.5.0 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.4 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.3 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.2 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.1 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.4.0 app/assets/javascripts/alchemy/alchemy.page_sorter.js
alchemy_cms-4.3.2 app/assets/javascripts/alchemy/alchemy.page_sorter.js