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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -