mois3x / sweet-alert-rails-confirm

A Rails confirm replacement with SweetAlert
MIT License
73 stars 50 forks source link

Make sure the correct event happens after confirm #39

Open humancopy opened 8 years ago

humancopy commented 8 years ago

It's important to trigger the click instead of updating the window.location because not all links are meant to change the location. Triggering the click again makes sure that the expected event will occur.

I encountered this problem when trying to use sweet alert confirm together with link_to_remove_association from nathanvda/cocoon