Keep sticky elements after AJAX requests

Turbolinks doesn't get on well with Foundation's Sticky, and so we need
to manually trigger the event on Turbolinks' `page:load`.
This commit is contained in:
Javi Martín
2018-12-28 19:09:11 +01:00
parent b4a1f0db51
commit f7d4507ebe

View File

@@ -2,3 +2,4 @@ App.FoundationExtras =
initialize: ->
$(document).foundation()
$(window).trigger "load.zf.sticky"