From: Nokan Emiro Date: 2013-06-25T23:42:21+09:00 Subject: rails4 turbolinks question --047d7b6743b43ed92d04dffb89c4 Content-Type: text/plain; charset=UTF-8 Hi, It's not specifically a Ruby thing, but a Rails4 Turbolinks one. Since turbolinks does not do real page reloads, it triggers events like page:fetch, page:load, page:change, etc. But I can't find one, that is capable of interrupting the click. I'm looking for something that is a BeforeUnLoad event in normal cases. Does someone know if there is such one? page:fetch seemd to me the one, but capturing it and returning false does not stop the event. --047d7b6743b43ed92d04dffb89c4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

It's not specifically a Ruby th= ing, but a Rails4 Turbolinks one.

Since turbolinks= does not do real page reloads, it triggers events like
page:fetc= h, page:load, page:change, etc. =C2=A0But I can't find one, that
is capable of interrupting the click. =C2=A0I'm looking for someth= ing that is
a BeforeUnLoad event in normal cases. =C2=A0Does some= one know if there
is such one? =C2=A0page:fetch seemd to me the o= ne, but capturing it and
returning false does not stop the event.

--047d7b6743b43ed92d04dffb89c4--