Skip to content

Instantly share code, notes, and snippets.

@dustingetz
Created September 15, 2010 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustingetz/580948 to your computer and use it in GitHub Desktop.
Save dustingetz/580948 to your computer and use it in GitHub Desktop.
wspt.getDhtmlClient().registerLoadHandler(function() {
wspt.getDhtmlClient().getEventManager().subscribeSystemEvents(processTicketReceipt${ns});
},'importfiles subscribe sys events, processTicketReceipt');
function doCheckin (oCtx)
{
window.processTicketReceipt${ns} = function(sEventID, sRecipientID, oEventData)
{
if (sRecipientID !== "importfiles${ns}") return;
var oTicket = oEventData.transferUrl;
reallyDoTheCheckin(oCtx, oTicket);
}
oQueryString = wspt.getDhtmlClient().createQueryString();
oQueryString.add('docbase', '${xfer.docbase}');
oQueryString.add(wspt.RECIPIENT_ID, 'importfiles${ns}');
wspt.getDhtmlClient().executeRequest('dwuiGetTicket', oQueryString);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment