Files
nairobi/app/assets/javascripts/foundation_extras.js
Javi Martín 983bf49b38 Simplify code related to Foundation's sticky
In the past we had huge problems trying to make it work with Turbolinks.
However, after updating foundation-rails in commit 58071fd6, these hacks
aren't necessary anymore.

We're adding a test for the scenario of visiting a page using
Turbolinks, which was missing, so we're sure we aren't breaking
anything.

Note the sticky will still not work after using the browser back button.
We haven't been able to make it work with turbolinks-classic; we'll fix
this issue when upgrading turbolinks.
2020-08-05 11:34:57 +02:00

9 lines
144 B
JavaScript

(function() {
"use strict";
App.FoundationExtras = {
initialize: function() {
$(document).foundation();
}
};
}).call(this);