Created
June 14, 2017 02:11
-
-
Save davecra/6465ea3141da5be213d49bb421bb524e to your computer and use it in GitHub Desktop.
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