Sha256: 18d869f2f718fac5753d4c59fe8d95a3038b2bda80bb20bb4e5169d5c308fa89

Contents?: true

Size: 602 Bytes

Versions: 4

Compression:

Stored size: 602 Bytes

Contents

:javascript
  function sortable_tree(item_id, parent_id, prev_id, next_id){
    jQuery.ajax({
      type: 'POST',
      url: '#{opts[:rebuild_url]}',
      data: { id: item_id,
              parent_id: parent_id,
              prev_id: prev_id,
              next_id: next_id },
      dataType: 'script',
      beforeSend: function(xhr){
        //$('##{opts[:klass]}_nested_set .handle').hide();
      },
      success: function(data, status, xhr){
        //$('##{opts[:klass]}_nested_set .handle').show();
      },
      error: function(xhr, status, error){
        alert(error);
      }
    });
  }

Version data entries

4 entries across 4 versions & 1 rubygems

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