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

NodeJS `require` support: conditionally export as module (ref #54) #58

Open vjt opened 7 years ago

vjt commented 7 years ago

This change adds full node support and avoids having jQuery defined at parsing time, so that initialisation and jQuery binding can be done afterwards.

Builds on work originally started in #54 - but it is yet untested. Help needed!

Check the changes using this link as this commit contains a lot of whitespace changes.