ifad / data-confirm-modal

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

How would I create a delete popup where the use has to explicitly type "DELETE" in order to delete? #13

Closed kibaekr closed 9 years ago

kibaekr commented 10 years ago

Just as the question states, how would I create a delete popup where the use has to explicitly type "DELETE" in order to delete?

I don't want this to be applied to all the require confirm popups that I have throughout my app, just on a particular delete button. In the readme I only see how I can set global settings.

vjt commented 10 years ago

Add a data-verify attribute to your input. I've updated the README to make it clearer.