This fixes the checkbox selector in Vandelay's Inspect Queue interface, so you can...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Jan 2010 16:14:25 +0000 (16:14 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Jan 2010 16:14:25 +0000 (16:14 +0000)
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

Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 92e8981..262b4fc 100644 (file)
@@ -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>";
 }