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

Ticket #7050 (closed enhancement: untested)

Opened 1 year ago

Last modified 1 year ago

[PATCH] pass a function as the container for Droppables

Reported by: stakadush Assigned to: thomas@fesch.at
Priority: normal Milestone: 1.x
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc:

Description

this patch allows passing a function as the containment of the droppable. the function should return an array of elements... it is backward compatible, and will work with passing an array as before.

i needed this because i had droppable elements with many items in them, and they were being dynamically added and removed from the page, so doing everytime Sortable.create() was just too sluggish... using the function technique though, i kept an array of the elements currently in the container, and the function returned them to the droppable as required...

Attachments

dragdrop.diff (1.5 kB) - added by stakadush on 01/15/07 09:45:52.

Change History

01/15/07 09:45:52 changed by stakadush

  • attachment dragdrop.diff added.

01/15/07 16:23:05 changed by madrobby

  • status changed from new to closed.
  • resolution set to untested.