Last active
November 30, 2017 06:49
-
-
Save peterfication/c4ce8c7125ab077ce004ad7dd0fe9275 to your computer and use it in GitHub Desktop.
First try SweetAlert Rails confirm new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Override the default confirm dialog of Rails | |
Rails.handleConfirm = link => { | |
if (link.data('confirm') === undefined){ | |
return true | |
} | |
showSweetAlertConfirmationDialog(link) | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment