ifad / data-confirm-modal

Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.
MIT License
270 stars 115 forks source link

fix for issue #12 #37

Closed caycehouse closed 8 years ago

caycehouse commented 8 years ago

fix for issue #12

vjt commented 8 years ago

Thanks for your attempt - but it was incorrect because re-creating the modal at every click was resetting the state information stored in the data('confirmed') area, thus generating an infinite loop of modals 😄

I have fixed this differently in ce207498 by cleaning up the Rails integration logic.

caycehouse commented 8 years ago

@vjt No big deal, was just trying to get this working for a rails project earlier today, thanks for the revision!

vjt commented 8 years ago

😺 🍻 👋 🆗 ✔️