From a9b96287d62a43ce18f6ba26d3e05a30eece2c80 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 12 May 2007 04:10:06 +0000 Subject: [PATCH] do not attempt focus()ing git-svn-id: svn://svn.open-ils.org/ILS/trunk@7261 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/xul/template-config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index f573d6df1b..3ccf314007 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -487,10 +487,13 @@ function populateOperatorContext () { var tabpanel = $( tabname + 'panel' ); var tree = tabpanel.getElementsByTagName('tree')[0]; - var item = getSelectedItems(tree)[0]; + var items = getSelectedItems(tree); var dtypes = []; - dtypes.push( item.getAttribute('datatype') ); + for (var i in items) { + var item = items[i]; + dtypes.push( item.getAttribute('datatype') ); + } var menu = $(tabname + '_op_menu'); while (menu.firstChild) menu.removeChild(menu.lastChild); -- 2.11.0