From dc7e0450f43d158d09a8e72eb5983a64ee0660fb Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 19 Sep 2008 20:52:39 +0000 Subject: [PATCH] set processed count to 0 pre-upload. fixed bug in is-grid-already-built logic git-svn-id: svn://svn.open-ils.org/ILS/trunk@10652 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/vandelay/vandelay.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/vandelay/vandelay.js b/Open-ILS/web/vandelay/vandelay.js index 9a7c445259..2431e29886 100644 --- a/Open-ILS/web/vandelay/vandelay.js +++ b/Open-ILS/web/vandelay/vandelay.js @@ -178,6 +178,7 @@ function runStartupCommands() { * asynchronously upload a file of MARC records */ function uploadMARC(onload){ + dojo.byId('vl-upload-status-count').innerHTML = '0'; dojo.byId('vl-ses-input').value = authtoken; displayGlobalDiv('vl-marc-upload-status-div'); dojo.io.iframe.send({ @@ -215,7 +216,6 @@ function createQueue(queueName, type, onload) { * out into the vandelay tables */ function processSpool(key, queueId, type, onload) { - dojo.byId('vl-upload-status-count').innerHTML = '0'; fieldmapper.standardRequest( ['open-ils.vandelay', 'open-ils.vandelay.'+type+'.process_spool'], { async: true, @@ -465,12 +465,13 @@ function vlHandleOverlayTargetSelected() { } } +var vlQueueGridBuilt = false; function buildRecordGrid(type) { displayGlobalDiv('vl-queue-div'); currentOverlayRecordsMap = {}; - if(!vlQueueGrid.structure) { + if(!vlQueueGridBuilt) { var defs = (type == 'bib') ? bibAttrDefs : authAttrDefs; for(var i = 0; i < defs.length; i++) { var def = defs[i] @@ -483,6 +484,7 @@ function buildRecordGrid(type) { }; vlQueueGridLayout[0].cells[0].push(col); } + vlQueueGridBuilt = true; } var storeData; -- 2.43.2