Created
September 24, 2010 15:04
-
-
Save dustingetz/595517 to your computer and use it in GitHub Desktop.
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 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