Forum: Rails Spinoffs (closed, excessive spam) [] disabling and reactivating draggables

8283a04093b90580cce9a281cbc0e8f2?d=identicon&s=25 Dennis Schmidt (Guest)
on 2008-07-10 15:55
(Received via mailing list)
Hi there,

Is it somehow possible to deactivate draggables and then after having
done something else, reactivating them? I tried
Draggables.deactivate() but that doesn't seem to work.

Alternatively it would be OK if I knew how to remove the "dragability"
feature from an html element entirely.

Thanks in advance, Dennis
625e99cca23b3893a070c84dc3b0ac13?d=identicon&s=25 Justin Perkins (Guest)
on 2008-07-10 16:01
(Received via mailing list)
Have you tried destroying your draggable?

var dragMe = new Draggable('element');
// do stuff
// if you need to make it draggable again later, you'll have to create
a new Draggable

I've only worked with Sortable, so I might not be the best person to
answer this.

This topic is locked and can not be replied to.