I have a view that is changing look depending on parameters received, but turbolinks prevented a jQuery toggle
function to work properly so I added data-no-turbolink
to the body tag for that view, and it solved it.
But if navigating to another controller/action and then back, then that page still doesn't allow the jQuery function to work properly - despite of the data-no-turbolink
in body tag. Then only way to resolve this is inserting data-no-turbolink
to all pages, i.e. disabling turbolinks all together.
I want the jQuery toogle function to work on my page, how do I accomplish this without turbolinks interfering?