jquery - After Deploying to Heroku data-toggle="popover" requires refresh of page to work? -


originally fixed issue on localhost using jquery-turbolinks gem after deploying heroku no longer works! still must refresh page in order use popover function. thoughts?

i require gem in production section of gemfile no avail.

turbolinking needs force ready function on page:load.

javascript (+jquery)

ready = function(){ $('[data-toggle="popover"]').popover(); }; $(document).ready(ready);  $(document).on('page:load', ready);  

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -