Pushstate website with quick chat, specify element to initialize quick chat on?
-
Hello!
I am developing a community for speedrunners, and i am currently using quick-chat. It is a fantastic plugin!Thing is, the site is using PJAX or pushstate, which does not reload page when you navigate the site. This is fine because my general quick-chat is in the top of the header which never reload when you navigate the site.
But on some posts inside the container that dynamically change content with PJAX, i have extra quick-chats related to the post, and when you navigate to that post the quick chat there is not initialized. I can do quick_chat.load(), but then i get two general chat boxes in the header.
I basically only want to check if quick chat is already initialized on that element, and exclude that when running the function quick_chat.load().
Is there any way to specify on what element to load quick chat?
or exclude quick chat init on elements that have the class “loaded”? or anything?Example:
quick_chat.load({
element: “#post_chat”,
});Thanks!
- The topic ‘Pushstate website with quick chat, specify element to initialize quick chat on?’ is closed to new replies.