vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.75k stars 769 forks source link

Calling modals after reloading via AJAX #210

Closed jaredplanter closed 8 years ago

jaredplanter commented 8 years ago

Hello

First off, thank you for creating this wonderful library! :)

I'm using remodal in a ruby on rails project and am running into an issue. I am dynamically loading modals on the page and reloading them via AJAX when the user makes changes to the page. Once the data is reloaded the modal will not pop-up when the link is clicked. However, I can call open() on it in the javascript console. I know it would probably be better to ajax load the actual content of the modal into the body but so much changes that we've found it easier to just reload all of the content for that section.

Thanks!