From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 7 Jan 2010 16:14:25 +0000 (+0000)
Subject: This fixes the checkbox selector in Vandelay's Inspect Queue interface, so you can... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cfad644eab57121841de4a10e5a68e4335fdd353;p=evergreen%2Fpines.git

This fixes the checkbox selector in Vandelay's Inspect Queue interface, so you can, for example, check a specific record in the queue and do Actions ->
Import Selected without the progressmeter hanging with a dojo.byId() is null error.  The formatter for the checkbox column in the table gets called
multiple times for a given row, and the first time it gets called it's using an id of null.  Subsequent calls with a real id replace the HTML generated.



git-svn-id: svn://svn.open-ils.org/ILS/trunk@15269 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js
index 92e8981042..262b4fca3e 100644
--- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js
+++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js
@@ -735,7 +735,7 @@ function vlQueueGridDrawSelectBox(rowIdx, item) {
 
 function vlQueueGridFormatSelectBox(id) {
     var domId = 'vl-record-list-selected-' + id;
-    selectableGridRecords[domId] = id;
+    if (id) { selectableGridRecords[domId] = id; }
     return "<div><input type='checkbox' id='"+domId+"'/></div>";
 }