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
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs