Bug 263482: focus the search box when switching to search sidebar in Help Viewer. r=bryner

This commit is contained in:
steffen.wilberg%web.de 2004-10-24 23:14:16 +00:00
parent ef8a009765
commit b7834b4312

View File

@ -560,6 +560,10 @@ function showPanel(panelId) {
document.getElementById("help-toc-btn").removeAttribute("selected");
//add the selected style to the correct panel.
theButton.setAttribute("selected", "true");
//focus the searchbox if the search sidebar panel is shown.
if (panelId == "help-search")
document.getElementById("findText").focus();
}
function findParentNode(node, parentNode)