Because window.location.reload can trigger before the deletions
have occurred. Simple fix (band aid?) is to make the delete
calls in sync.
Signed-off-by: Mark Cooper <markchristophercooper@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
function vlDeleteQueue(type, queueId, onload) {
fieldmapper.standardRequest(
['open-ils.vandelay', 'open-ils.vandelay.'+type+'_queue.delete'],
- { async: true,
+ { async: false,
params: [authtoken, queueId],
oncomplete: function(r) {
var resp = r.recv().content();