padrino/padrino-static

Event rebinding issue

Opened this issue · 0 comments

It seems that the current script does not handle event rebinding correctly.

Replacing live with on is not a 1:1 relation, it seems. Rationale: http://blog.revathskumar.com/2013/10/jquery-on-avoid-losing-event-binding-for-ajaxed-contents.html

To reproduce:

Use a link to load a remote partial, containing a remote form.
The form, with remote: true, will fail to behave correctly and will not make
an asynchronous request.

It might be overkill for padrino (or not), but a workaround is using https://github.com/rails/jquery-ujs which actually is backend independent and can work as a drop-in replacement.

Using 0.11.4.