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
Post a Comment