Sha256: 1b13e3ae8a5db043cb5b898792760ae9d6c3d9cd6afa44853f020b4385b40210

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

<div id="tree">
  <%= render :partial => 'sunrise/manager/tree/root', :collection => @records %>
</div>

<script type='text/javascript'>
  $(document).ready(function(){
    Manage.init_collection('tree', 'gray-row');
    
    Tree.init('#tree');
    
    $('a.move_up').bind("ajax:complete", function(){
      var sid = $(this).attr('href').replace('/manage/structures/', '');
      
      Manage.move_node('structure_' + parseInt(sid), 'up'); 
    });
    
    $('a.move_down').bind("ajax:complete", function(){
      var sid = $(this).attr('href').replace('/manage/structures/', '');
      
      Manage.move_node('structure_' + parseInt(sid), 'down');
    });
  });
</script>

<style type="text/css">
  .struct-bl .bot-bg {
    position: relative;
    width: 920px;
  }  
</style>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunrise-cms-0.3.0.rc app/views/sunrise/manager/tree/index.html.erb