LP#1067361: vandelay: batch queue deletion no longer works
authorMark Cooper <markchristophercooper@gmail.com>
Tue, 16 Oct 2012 18:02:23 +0000 (11:02 -0700)
committerBen Shum <bshum@biblio.org>
Mon, 4 Feb 2013 18:30:28 +0000 (13:30 -0500)
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>
Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 7d35503..7df3068 100644 (file)
@@ -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();