Sha256: 7b825444a19d5d609a19a798d7c4b74385260d98ba5f01ec1ba898161ba52394
Contents?: true
Size: 865 Bytes
Versions: 8
Compression:
Stored size: 865 Bytes
Contents
<h3> Sections <% if @site.sections.size > 1 %> <%= link_to_function "Reorder", "sections_tree.toggle(this, 'Done reordering')", id: 'reorder_sections' %> <%= image_tag '/assets/adva_cms/indicator.gif', :id => 'sections_indicator', :style => 'display: none;' %> <% end -%> </h3> <ul id="sections"> <%= render :partial => 'admin/shared/section', :collection => @site.sections.roots %> </ul> <script type="text/javascript"> var sections_tree = new SortableTree('sections', { onDrop: function(drag, drop, event) { <%= remote_function(:url => admin_sections_path, :method => :put, :with => "drag.to_params()", :loading => "$('sections_indicator').show()", :complete => "$('sections_indicator').hide()" ) %> } }); </script>
Version data entries
8 entries across 8 versions & 1 rubygems