jquery not working unless page refreshed

Associate
Joined
19 Jul 2006
Posts
1,847
I have the following code on my local server where I'm developing a RoR app.

Basically the link should be hidden unless its with in a date range.
when the page loads the link is hidden (even when it shouldnt be) its only when I refresh the page does the code work as expected.

Any Ideas?


http://codepen.io/anon/pen/KVQzaE
 
Associate
OP
Joined
19 Jul 2006
Posts
1,847
Found the problem it was to do with turbolinks not binding. So removed the //= require turbolink from application.js
 
Back
Top Bottom