Sha256: 73d73829103282c4909ad93f93e26df2323921a372104a5c818a9be1f208adda

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

:javascript
  $(document).ready(function(){
    $('ol.sortable').sortable({
      update: function(event, ui){
        parent_id = ui.item.parent().parent().attr('id');
        item_id = ui.item.attr('id');
        prev_id = ui.item.prev().attr('id');
        next_id = ui.item.next().attr('id');
        sortable_tree(item_id, parent_id, prev_id, next_id);
      }
    });
  });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
the_sortable_tree-1.2.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.1.3 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.1.1 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.0.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml