I am working on a resource planning problem. I like to use a nice drag
and drop interface for that. E.g. have a box of persons and a box of
projects, now I would like to assign a persom to project by dragging it
from the available resources box to a recieving project box.
I have studied the amazing drag and drop shopping card code listed here
What I need to change is that the resources (products in the cart
example) should be deleted from the list of available persons after an
assignment is done (I can do a :revert => false, but that is only part
of the job.).
Even more challaging is to found a way of reassigning a resource: I
would like to get a person back from a project into the pool of
available persons again.
I tried lots of things but I cannot make the drop action (form the
shopping card div bacl into the products div) update the products div.
The cart div is the only one updated. I wonder if it is the nesting of
the divs that can make it work ? A drop on the waste bin does update the
shopping cart, also, so there should be simple trick to get the products
box to be updated also (maybe reflecting new stock levels ??)
Any hints or pointers are more then welcome,