Fix for bug 241018. folderpane context menu shows all entries on every position.

r/sr=mscott
This commit is contained in:
varga%nixcorp.com 2004-04-20 19:06:56 +00:00
Родитель 97aca7f024
Коммит 4e81cd06c7
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -43,8 +43,7 @@ function RestoreSelectionWithoutContentLoad(tree)
return;
}
var treeBoxObj = tree.treeBoxObject;
var treeSelection = treeBoxObj.selection;
var treeSelection = tree.view.selection;
// make sure that currentIndex is valid so that we don't try to restore
// a selection of an invalid row.
@ -263,7 +262,7 @@ function fillFolderPaneContextMenu()
var folderTree = GetFolderTree();
var startIndex = {};
var endIndex = {};
folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex);
folderTree.view.selection.getRangeAt(0, startIndex, endIndex);
if (startIndex.value < 0)
return false;
var numSelected = endIndex.value - startIndex.value + 1;