Pjax doesn't work with links loaded with another children ajax elements after DOM
stefan1214124 opened this issue · comments
stefan1214124 commented
Using ajax call I am loading new content to an existing empty div element which adds some links. These links should also work with pjax but they don't as I can see that the timestamp changes.
I tried to do this in the ajax success part but it's not working:
var newContent = document.querySelector(".new-content");
pjax.refresh(newContent);