This project is archived and is in readonly mode.
Option to stop event bubbling on link_to_remote and friends
Reported by Ryan Angilly | January 1st, 2009 @ 07:10 PM | in 2.x
Hey guys,
Does anyone else run into a situation where you want to stop event bubbling on a link_to_remote, so you have to do:
link_to_remote('linky', {:before => 'Event.extend(event).stop()', :update => 'div_id'})
Can we just get add a stop option so that:
link_to_remote('linky', {:url => '/action', :update => 'div_id', :stop => true})
I do it all the time. The second one looks nicer. Saves typing. Tiny patch.
Thanks! Ryan
Comments and changes to this ticket
-
Ryan Angilly March 8th, 2009 @ 01:45 PM
Cool! I figured this ticket went into the dead pool after not hearing anything for a while.
-
josh March 10th, 2009 @ 02:43 AM
- State changed from new to wontfix
Isn't the event canceled by "return false"?
I'm also hesitant to add yet another option to link_to_remote. We can probably review this for 3.0 when we go over the JS agnostic stuff.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>