我们无法让 Foundation 5 的 Abide 验证功能与 turbolink 一起使用。
基金会文档建议我们使用:
$(document).foundation('abide', 'reflow');
http://foundation.zurb.com/docs/components/abide.html
但是,我不确定当 turbolinks 更改页面时如何触发它。
从 turbolinks 文档看来,我们可以执行以下操作:
$(document).on("page:change", fix_abide)
https://github.com/rails/turbolinks
我不确定如何让 Foundation reflow 与 Turbolinks“page:change”一起使用。
有任何想法吗?