Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5109 (new defect)

Opened 2 years ago

Last modified 6 months ago

[PATCH] Sortable tree problem for the 2nd level nodes

Reported by: jonathan.besanceney@activis.net Assigned to: Rails
Priority: normal Milestone:
Component: script.aculo.us Version: edge
Severity: major Keywords: Sortable tree
Cc:

Description

We've found a bug in Sortable tree. When we try to drop a child to a 2nd level node, it refuses to be added.

dragdrop.js line 618 we had :

    var options_for_tree = {
      onHover:      Sortable.onEmptyHover,
      overlap:      options.overlap,
      containment:  options.containment,
      hoverclass:   options.hoverclass
    }

With this :

    var options_for_tree = {
      onHover:      Sortable.onEmptyHover,
      overlap:      options.overlap,
      containment:  options.containment,
      hoverclass:   options.hoverclass,
      tree:         options.tree
    }

The problem seems to be solved.
Regards,

Jonathan Besanceney

Change History

11/21/07 15:22:44 changed by pphilipp

  • version set to edge.
  • type changed from enhancement to defect.

Hi there,

This defect seems still to be open :| dagdrop.js Line 696, Version 1.8.0:

    var options_for_tree = {
      onHover:      Sortable.onEmptyHover,
      overlap:      options.overlap,
      containment:  options.containment,
      hoverclass:   options.hoverclass
    }

Would be great to see this small fix in the next release ;)

Best Regards Peter Philipp