From 25b0d4b13faed65318661dfa01871b40d195b479 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Thu, 27 Jul 2006 14:55:55 +0000 Subject: [PATCH] 160927 patch by james ross twpol@aol.com r=varga sr=jag "Customize Tab" breaks with JavaScript error --- suite/common/sidebar/customize.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/suite/common/sidebar/customize.js b/suite/common/sidebar/customize.js index 9831430c023..8d5e1ca0a0d 100644 --- a/suite/common/sidebar/customize.js +++ b/suite/common/sidebar/customize.js @@ -434,10 +434,11 @@ function RemovePanel() function CustomizePanel() { var tree = document.getElementById('current-panels'); - var numSelected = tree.selectedItems.length; + var numSelected = tree.treeBoxObject.selection ? tree.treeBoxObject.selection.count : 0; if (numSelected == 1) { - var selectedNode = tree.selectedItems[0]; + var index = tree.currentIndex; + var selectedNode = tree.contentView.getItemAtIndex(index); var panel_id = selectedNode.getAttribute('id'); var customize_url = selectedNode.getAttribute('customize');