rails/jquery-ujs

Unclear statement in wiki

Bartuz opened this issue · 1 comments

In your wiki we can read that:

If you stop ajax:before or ajax:beforeSend, the Ajax request will never take place.

But what does "stop" mean? Is it "return false" in

 form.on('ajax:before', (() ->
    return false if 1 == 1
  ))

I think it should be specified & example given

Yes, it is. feel free to improve the wiki yourself if the example.