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

git-svn-id: svn://10.0.0.236/trunk@164310 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
steffen.wilberg%web.de 2004-10-24 23:14:16 +00:00
parent 0c6f9bcdb2
commit 61a9297ccf

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)