Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Option to stop event bubbling on link_to_remote and friends

#1681

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

Reported by Ryan Angilly · January 1st, 2009 @ 07:10 PM

State: wontfix
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user set to josh

    Josh knows JS!

    March 8th, 2009 @ 01:17 PM

  2. Ryan Angilly
    Ryan Angilly

    Cool! I figured this ticket went into the dead pool after not hearing anything for a while.

    March 8th, 2009 @ 01:45 PM

  3. josh
    josh
    • 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.

    March 10th, 2009 @ 02:43 AM