From 0111a7739f50f2bbd4f1255d969274d405d77bbf Mon Sep 17 00:00:00 2001 From: "mconnor%myrealbox.com" Date: Sun, 23 May 2004 02:15:49 +0000 Subject: [PATCH] cvs being weird, back this out until I can commit the whole patch --- browser/base/content/browser.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 29e4bd1d666f..be79c36d86c6 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -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",