mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bug 263482: focus the search box when switching to search sidebar in Help Viewer. r=bryner
This commit is contained in:
parent
ef8a009765
commit
b7834b4312
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user