зеркало из https://github.com/mozilla/pjs.git
160927 patch by james ross twpol@aol.com r=varga sr=jag
"Customize Tab" breaks with JavaScript error
This commit is contained in:
Родитель
1467e52b55
Коммит
25b0d4b13f
|
@ -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');
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче