зеркало из https://github.com/mozilla/pjs.git
r=mkaply, sr=bryner Code from jblanco - always select a folder so the New Folder button works
This commit is contained in:
Родитель
18f5747325
Коммит
0c3cc2671f
|
@ -174,15 +174,15 @@ function Startup()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((arg != "newBookmark") && (bookmarkView.currentIndex == -1))
|
||||
bookmarkView.treeBoxObject.selection.select(0);
|
||||
|
||||
if (shouldSetOKButton)
|
||||
onFieldInput();
|
||||
if (document.getElementById("bookmarknamegrid").hidden) {
|
||||
bookmarkView.tree.focus();
|
||||
if (bookmarkView.currentIndex == -1)
|
||||
bookmarkView.treeBoxObject.selection.select(0);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
gFld_Name.select();
|
||||
gFld_Name.focus();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче