bluerail / twitter-bootstrap-rails-confirm

Confirm dialogs using Twitter Bootstrap
https://bluerail.nl
MIT License
85 stars 34 forks source link

Callbacks on confirm/cancel? #32

Closed jackerman09 closed 8 years ago

jackerman09 commented 8 years ago

How can I run a JS function when confirm and/or cancel are clicked? For example, I have it set so that a button is disabled when it is clicked so the user cannot click it twice, however, if 'Cancel' is clicked I need to re-enable the button.

Thanks!

rvanlieshout commented 8 years ago

The modal would prevent your second click, but if you would really want you could observe the default bootstrap events like modal's shown?