I am new to javascript and can use your help. The first time my PJAX page loads, my tooltips work:
$(document).ready(function() { $(document).pjax('a', '#main', {cache: false}); $('[data-toggle="tooltip"]').tooltip(); }
They get stuck if I do not do the following:
$(document).on('pjax:start', function(event) { $('[data-toggle="tooltip"]').tooltip('dispose'); });
I tried to reinitialize them on pjax: end or pjax: no luck. I get a strange tooltip if I hang for a long time, but not a tooltip.
How to reinstall tooltips after completing XHR?
Bootstrap v4.0.0-beta.2 https://v4-alpha.getbootstrap.com/components/tooltips/
https://github.com/defunkt/jquery-pjax
source share