On 2012-08-15 15:07, rpn wrote:
Hi,
> - Here is one using a "drag" binding and a new "receive" handler for
> - Here is an example of using sortables that contain a single item and
> prevent dropping:
http://jsfiddle.net/rniemeyer/Z3Jmw/
> - Here is a basic drag/drop sample (no sorting):
>
http://jsfiddle.net/rniemeyer/78UCX/
On 2012-08-15 17:04, cuhual wrote:
>
http://jsfiddle.net/cuhuak/4CHDZ/
Thanks for the examples. cuhuak's version pretty much does all I need,
and is nice and understandable. I think Ryan's first example is a bit
more elegant, as it doesn't require a global state. It does only create
multiple entries for every model student, however, which isn't quite
what I needed. So I've changed the logic so instead of providing the
object, I'm now providing the constructor, and then in the "receive"
handler I'm calling "new constructor()".
Again, thanks for the quick help.
Cheers,
Kai
--
Kai Blin
Worldforge developer
http://www.worldforge.org/
Wine developer
http://wiki.winehq.org/KaiBlin
Samba team member
http://www.samba.org/samba/team/