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:
@@ -2,3 +2,4 @@ App.FoundationExtras =
|
||||
|
||||
initialize: ->
|
||||
$(document).foundation()
|
||||
$(window).trigger "load.zf.sticky"
|
||||
|
||||
Reference in New Issue
Block a user