Skip to content

Instantly share code, notes, and snippets.

@dustingetz
Created September 24, 2010 15:04
Show Gist options
  • Save dustingetz/595517 to your computer and use it in GitHub Desktop.
Save dustingetz/595517 to your computer and use it in GitHub Desktop.
function processTicketReceipt(sEventID, sRecipientID, oEventData)
{
if ((sRecipientID !== "checkin${ns}") ||
(sEventID !== docway.SYSTEM_EVENT_TICKET_RECEIPT)) return;
finishCheckin(oCtx, oEventData);
}
function startCheckin (oCtx)
{
oQueryString = wspt.getDhtmlClient().createQueryString();
oQueryString.add('docbase', '${docbase}');
oQueryString.add(wspt.RECIPIENT_ID, 'checkin${ns}');
wspt.getDhtmlClient().executeRequest('dwuiGetTicket', oQueryString);
}
////////////////////
wspt.getDhtmlClient().getEventManager().unsubscribeSystemEvents(processTicketReceipt);
wspt.getDhtmlClient().getEventManager().subscribeSystemEvents(processTicketReceipt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment