Skip to content

Instantly share code, notes, and snippets.

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