codrops/ModalWindowEffects

Reinitialize modals after new content via ajax

murray484 opened this issue · 1 comments

Hello,
Is there an easy way to reinitialize the modal plugin after bringing new anchor links via ajax?

Thanks

Yes.
Change line 55 in modalEffects.js from init(); to return init;

Then after you have created the new anchor links you just re-init the process by ModalEffects();

Tested and works :-)