In 2020, the accepted answer didn't work for me. I ended up doing something like this instead:
$(document).on('confirm:complete', function (e) {
if (e.originalEvent.detail[0]) {
// user confirmed!
myCallbackFunction();
} else {
// user canceled!
}
});