cvs being weird, back this out until I can commit the whole patch

This commit is contained in:
mconnor%myrealbox.com 2004-05-23 02:15:49 +00:00
Родитель af1ed15825
Коммит 0111a7739f
1 изменённых файлов: 0 добавлений и 17 удалений

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

@ -2745,25 +2745,8 @@ function toggleSidebar(aCommandID, forceOpen) {
sidebarBox.setAttribute("src", url);
sidebarBox.setAttribute("sidebarcommand", elt.id);
sidebarTitle.setAttribute("value", title);
if (aCommandID != "viewWebPanelsSidebar") { // no searchbox there
// if the sidebar we want is already constructed, focus the searchbox
if ((aCommandID == "viewBookmarksSidebar" && sidebar.contentDocument.getElementById("bookmarksPanel"))
|| (aCommandID == "viewHistorySidebar" && sidebar.contentDocument.getElementById("history-panel")))
sidebar.contentDocument.getElementById("search-box").focus();
// otherwiese, attach an onload handler
else
sidebar.addEventListener("load", asyncFocusSearchBox, true);
}
}
function asyncFocusSearchBox(event)
{
var sidebar = document.getElementById("sidebar");
var searchBox = sidebar.contentDocument.getElementById("search-box");
searchBox.focus();
sidebar.removeEventListener("load", asyncFocusSearchBox, true);
}
function openPreferences()
{
openDialog("chrome://browser/content/pref/pref.xul","PrefWindow",