Files
grecia/app/assets/javascripts/foundation_extras.js.coffee
Javi Martín f7d4507ebe 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`.
2019-05-21 13:50:16 +02:00

6 lines
109 B
CoffeeScript

App.FoundationExtras =
initialize: ->
$(document).foundation()
$(window).trigger "load.zf.sticky"