зеркало из https://github.com/mozilla/pjs.git
fix for #134958. can't delete mailing list from dir pane.
r=hewitt, sr=bienvenu
This commit is contained in:
Родитель
9c09e6728f
Коммит
8ea3186c39
|
@ -224,13 +224,16 @@ function AbEditSelectedDirectory()
|
|||
|
||||
function GetParentRow(aTree, aRow)
|
||||
{
|
||||
var level = aTree.view.getLevel(aRow);
|
||||
var row = aRow;
|
||||
var level = aTree.view.getLevel(row);
|
||||
var parentLevel = level;
|
||||
while (aRow >= 0 && parentLevel >= level) {
|
||||
parentLevel = aTree.view.getLevel(aRow);
|
||||
--aRow;
|
||||
while (parentLevel >= level) {
|
||||
row--;
|
||||
if (row == -1)
|
||||
return row;
|
||||
parentLevel = aTree.view.getLevel(row);
|
||||
}
|
||||
return aRow;
|
||||
return row;
|
||||
}
|
||||
|
||||
function InitCommonJS()
|
||||
|
|
Загрузка…
Ссылка в новой задаче