XF 2.0 [JS] Destroy overlay

Lukas W.

Well-known member
I'm using the js-overlayClose class to close an overlay on clicking a certain button (that opens a different overlay). Once the user has progressed through this overlay chain, the last overlay closes. As the last overlay runs the avatar script, no page reload is fired (and not needed either, fwiw). The only disadvantage is, that opening the first overlay again will not refresh the data as the modal content is still cached. Is there a similar class that could be used to destroy the overlay completely instead of just closing it? If not, how would I extend the overlay constructor to support this functionality?
 
Last edited:
Back
Top Bottom