Bug 128098 Index should be expanded by default

patch by neil@parkwaycc.co.uk r=oeschger sr=alecf
This commit is contained in:
timeless%mac.com 2002-06-12 13:43:50 +00:00
Родитель 1818806770
Коммит b45bad8884
1 изменённых файлов: 7 добавлений и 7 удалений

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

@ -673,12 +673,12 @@ function log(aText) {
// open the ones at the top-level (i.e., expose the headings underneath
// the letters in the list.
function displayIndex() {
var outliner = document.getElementById("help-index-outliner");
var oview = outliner.outlinerBoxObject.view;
for ( i = 0; i < 500; ++i ) {
if ( !oview.isContainerOpen(i) && oview.getLevel(i) == 0 ) {
oview.toggleOpenState(i);
}
}
if (!helpIndexPanel.view)
helpIndexPanel.view = helpIndexPanel.builder;
var treeview = helpIndexPanel.view;
var i = treeview.rowCount;
while (i--)
if (!treeview.getLevel(i) && !treeview.isContainerOpen(i))
treeview.toggleOpenState(i);
}