Last active
November 30, 2017 06:48
-
-
Save peterfication/a7287156243c68dcc2fd63e92796ac59 to your computer and use it in GitHub Desktop.
Rails SweetAlert confirm old
This file contains hidden or 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