Sha256: 5e547189856b46a462532db4199a0b9c11141905fb11afcce3cc3a6042d5c623

Contents?: true

Size: 364 Bytes

Versions: 13

Compression:

Stored size: 364 Bytes

Contents

:javascript
  $(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

13 entries across 13 versions & 2 rubygems

Version Path
the_sortable_tree_mongoid-1.8.5.1 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree_mongoid-1.8.5 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.9.0 app/views/sortable/base/_js_on_update_tree.html.haml
the_sortable_tree-1.8.6 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.8.5 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.8.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.7.1 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.7.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.6.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.5.0 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.4.8 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.4.7 app/views/the_sortable_tree/_js_on_update_tree.html.haml
the_sortable_tree-1.4.6 app/views/the_sortable_tree/_js_on_update_tree.html.haml