Closed kramerc closed 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.
event.preventDefault()
#
Thanks for your active support on this gem, @kramerc!
Glad to help! Thanks for the gem itself. :smiley:
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.