Actually in this case it seems that it was as simple as setting the handle to the surrounding div.

Sam D

ps. I was heading down the road you suggested when someone suggested trying the handle

On 6/15/06, David Rusenko <[EMAIL PROTECTED]> wrote:
Sam,

Actually, you could create an onChange handler for the sortable which
sets a global variable hasBeenDragged = 1. In your onClick, check if
hasBeenDragged = 1 --> if so, set to 0 and don't proceed; if not, continue.

The problem here is that onChange is only called when the sort order
changes. You could argue that if the sort order doesn't change in a
sortable, then the user has essentially meant to click on it. Or, if you
didn't want to argue that, you would most likely have to dig a bit into
the Sortable code and find the location of the drag function, and hack
in the hasBeenDragged variable there.

Unless I'm missing something, this seems like it should work...

David Rusenko
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to