Answer the question
In order to leave comments, you need to log in
How to open PopoverX after pjax download?
There is a block on the page that is reloaded by pjax. This block has PopoverX, it stops working after a reboot.
So far, the problem has been solved by hanging on pjax:complete everything that happens directly in js from the PopoverX component. Those. very crutch, duplication of code, etc.
Are there any options to make the popover work after a reboot?
Answer the question
In order to leave comments, you need to log in
I don't see anything creepy yet. When the popover script is invoked, it makes your markup a popover, all newly added markup, be it pjax, ajax or just js, requires the popover script to be initialized. So either include this script on the page that is being loaded or initialize it after the pjax loading is completed by the complete event. All right. Unless, you can rewrite the PopoverX widget itself a little, adding this logic there. And so everything is right.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question