From: Mark Cooper Date: Tue, 16 Oct 2012 18:02:23 +0000 (-0700) Subject: LP#1067361: vandelay: batch queue deletion no longer works X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=10114e3aeb26341f3441ebff6e3a102b2fcc1ea5;p=evergreen%2Fpines.git LP#1067361: vandelay: batch queue deletion no longer works 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 Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index 7d35503f3f..7df30687cd 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -1044,7 +1044,7 @@ function vlQueueGridNextPage() { 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();