bluerail / twitter-bootstrap-rails-confirm

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

Prevent the default action on the modal's buttons. #9

Closed kramerc closed 11 years ago

kramerc commented 11 years ago

Adding event.preventDefault() prevents the browser from navigating to #, the href value assigned to the modal's buttons. It also instructs libraries like Turbolinks to ignore these button links.

rvanlieshout commented 11 years ago

Thanks for your active support on this gem, @kramerc!

kramerc commented 11 years ago

Glad to help! Thanks for the gem itself. :smiley: