sendRequest: make requests persist even when a dialog is closed
authorSimon Schubert <2@0x2c.org>
Fri, 29 Jul 2011 22:55:22 +0000 (00:55 +0200)
committerSimon Schubert <2@0x2c.org>
Fri, 29 Jul 2011 22:55:22 +0000 (00:55 +0200)
commit9e8a049506785b1efe6c093b5de9c723f7c28f9e
tree6b2de20f5243946fa862c1d60057691310b015d2
parent04ae7181c9a02fe3676b060bcaf66fc1b569aa10
sendRequest: make requests persist even when a dialog is closed

When creating a new event, using Save+Close on the dialog would lead
to two events being created on the Exchange server.  This happened
because the closing window would abort the XMLHttpRequest, which
usually did succeed already; this created the first event.

The aborted request appears like an odd completed request with invalid
error status, and so we would retry the request, this time out of the
scope of a window; this created the second event.

Fix this by disabling the loadGroup on the channel, therefore
persisting the request beyond the lifetime of the window.

Bug: https://bugs.launchpad.net/lightning-exchange-provider/+bug/711678
js/calExchange.js