From cfad644eab57121841de4a10e5a68e4335fdd353 Mon Sep 17 00:00:00 2001 From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Thu, 7 Jan 2010 16:14:25 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/vandelay/vandelay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>"; } -- 2.11.0