зеркало из https://github.com/mozilla/pjs.git
Fix for bug 241018. folderpane context menu shows all entries on every position.
r/sr=mscott
This commit is contained in:
Родитель
482a23780f
Коммит
0fa2896e20
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче