Fix Go menu.

This commit is contained in:
hyatt%netscape.com 2002-10-11 18:59:47 +00:00
parent 604a535e2b
commit 4e9820309d

View File

@ -600,19 +600,26 @@ function updateGoMenu(goMenu)
var builder = history.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
var beforeItem = document.getElementById("endHistorySeparator");
beforeItem.hidden = false;
var nameResource = gRDF.GetResource(NC_NS + "Name");
var endSep = beforeItem;
var showSep = false;
for (var i = count-1; i >= 0; i--) {
var res = builder.getResourceAtIndex(i);
var url = res.Value;
var titleRes = history.database.GetTarget(res, nameResource, true);
if (!titleRes)
continue;
showSep = true;
var titleLiteral = titleRes.QueryInterface(Components.interfaces.nsIRDFLiteral);
beforeItem = constructGoMenuItem(goMenu, beforeItem, url, titleLiteral.Value);
}
if (showSep)
endSep.hidden = false;
}
function addGroupmarkAs()