Dialog Callback
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
function processMessage(arg) { | |
// close the dialog | |
dialog.close(); | |
// procress the result | |
if(arg.error == 12006) { | |
// user clicked the (X) on the dialog | |
sendEvent.completed({ allowEvent: false }); | |
} else { | |
if(arg.message=="Yes") { | |
// user clicked yes | |
sendEvent.completed({ allowEvent: true }); | |
} else { | |
// user clicked no | |
sendEvent.completed({ allowEvent: false }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment