Sha256: 4be4bc85c64e66b539be59de0e1192d597b721824295fc6a8187402bc15f718b
Contents?: true
Size: 872 Bytes
Versions: 1
Compression:
Stored size: 872 Bytes
Contents
<div class="wrapper" style="padding-top:90px;"> <div class="treeHolder"> <%= content_tag(:ul, :id => "sortable", :"data-url" => sort_path(:format => :json)) do -%> <%= render :partial => apply_scope("record"), :collection => @records %> <% end -%> </div> </div> <script type='text/javascript'> $(document).ready(function(){ window['sunrise'].storeQuery(); $("#sortable ul").sortable({ placeholder: "tree-state-shadow", handle: "a.dnd_link", items: "li", connectWith: "ul.children", delay: 400, opacity: 0.7, start: function (e, ui) { ui.placeholder.html("<div></div>"); }, update: function(event, ui) { var query = window["sunrise"].serializeTree('#sortable'); $.ajax({url: $("#sortable").data('url'), type: 'POST', dataType: 'json', data: query}); } }).disableSelection(); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | app/views/sunrise/manager/tree/index.html.erb |