jquery-modal icon indicating copy to clipboard operation
jquery-modal copied to clipboard

Multiple imports of jquery modal

Open AndrewGene opened this issue 2 years ago • 1 comments

My team sometimes imports libraries on their standalone pages that are already in a master page (they forget to look). With jquery.modal this causes an issue when trying to hit the auto-generated closes button (clicking outside the modal or hitting escape still work). You can test for the existence of your library before you initialize it by adding the code from this SO answer...

https://stackoverflow.com/a/400943/817625

Wrapping your code with this would prevent any errors in the future.

AndrewGene avatar May 09 '23 14:05 AndrewGene

Love the lib by the way.

AndrewGene avatar May 09 '23 14:05 AndrewGene