160927 patch by james ross twpol@aol.com r=varga sr=jag

"Customize Tab" breaks with JavaScript error
This commit is contained in:
cbiesinger%web.de 2006-07-27 14:55:55 +00:00
Родитель 1467e52b55
Коммит 25b0d4b13f
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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');