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

Add support for data-confirm in input elements #6

Closed nark closed 11 years ago

nark commented 11 years ago

Add support for data-confirm in <input> elements and update the readme file with little information about this.

vjt commented 11 years ago

Hi! Thanks for your contribution.

I think that matching every input is a bit too broad - as it'll match also text inputs, checkboxes and radios. Do you really want that behaviour? Or do you want to apply it only to input[type=submit] inputs?

nark commented 11 years ago

You're right. I fixed it. And added delegate elements to default settings, for more flexibility. Hope you agree with that.

vjt commented 11 years ago

Cool, thanks! :cat: