May I set directly callback "dragStart" and "dragEnd " in options of my Sortable.create ?
On 6/14/06, Tom Gregory <[EMAIL PROTECTED]> wrote:
On Jun 14, 2006, at 3:54 AM, Jean-Philippe Encausse wrote: > My 1st issue: > **************** > > The Drag n Drop works very well but when I drop the LI, the link is > followed. Is there a cross browser way to stop the link event ? > -> onChange is called too soon and onUpdate is never called. > May be I will have to set a specific handle without links ? dragStart fires on mousedown. dragEnd (and thus onChange) fires on mouseup. following the link occurs on click (and the events occur in this order) You'll need to flag the element on dragStart to not follow, and check (and reset) your flag when handling the click. TAG _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
-- Jean-Philippe Encausse - R&D Jalios SA Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs