From e28ca375608e57a0460b8a86e586d1c94dfaa29f Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sun, 7 Apr 2002 01:52:42 +0000 Subject: [PATCH] more crap removal. git-svn-id: svn://10.0.0.236/trunk@118419 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/base/resources/content/browser.js | 39 -------------- .../base/resources/content/browser.xul | 2 +- .../base/resources/locale/navigator.dtd | 52 ++++++++----------- 3 files changed, 24 insertions(+), 69 deletions(-) diff --git a/mozilla/browser/base/resources/content/browser.js b/mozilla/browser/base/resources/content/browser.js index 59a897f1b0f..bcbbb111724 100644 --- a/mozilla/browser/base/resources/content/browser.js +++ b/mozilla/browser/base/resources/content/browser.js @@ -49,7 +49,6 @@ var gSearchService = null; var gNavigatorBundle; var gNavigatorRegionBundle; var gLastValidURLStr = ""; -var gLastValidURL = null; var gHaveUpdatedToolbarState = false; var gClickSelectsAll = -1; @@ -85,13 +84,6 @@ const gButtonPrefListener = button.setAttribute("hidden","false"); else button.setAttribute("hidden", "true"); - - // If all buttons before the separator are hidden, also hide the separator - if (allLeftButtonsAreHidden()) - document.getElementById("home-bm-separator").setAttribute("hidden", "true"); - else - document.getElementById("home-bm-separator").removeAttribute("hidden"); - } }; const gTabStripPrefListener = @@ -422,21 +414,6 @@ function UpdateBackForwardButtons() } } -// Function allLeftButtonsAreHidden -// Returns true if all the buttons left of the separator in the personal -// toolbar are hidden, false otherwise. -// Used by nsButtonPrefListener to hide the separator if needed -function allLeftButtonsAreHidden() -{ - var buttonNode = document.getElementById("PersonalToolbar").firstChild; - while(buttonNode.tagName != "toolbarseparator") { - if(!buttonNode.hasAttribute("hidden") || buttonNode.getAttribute("hidden") == "false") - return false; - buttonNode = buttonNode.nextSibling; - } - return true; -} - function Startup() { // init globals @@ -679,20 +656,6 @@ function Shutdown() appCore.close(); } -function Translate() -{ - var service = pref.getCharPref("browser.translation.service"); - var serviceDomain = pref.getCharPref("browser.translation.serviceDomain"); - var targetURI = getWebNavigation().currentURI.spec; - - // if we're already viewing a translated page, then just reload - if (targetURI.indexOf(serviceDomain) >= 0) - BrowserReload(); - else { - loadURI(service + escape(targetURI)); - } -} - function gotoHistoryIndex(aEvent) { var index = aEvent.target.getAttribute("index"); @@ -2083,5 +2046,3 @@ function FillInHTMLTooltip(tipElement) return retVal; } - - diff --git a/mozilla/browser/base/resources/content/browser.xul b/mozilla/browser/base/resources/content/browser.xul index e24123da4c9..101418c40a8 100644 --- a/mozilla/browser/base/resources/content/browser.xul +++ b/mozilla/browser/base/resources/content/browser.xul @@ -494,7 +494,7 @@ Contributor(s): ______________________________________. --> - + diff --git a/mozilla/browser/base/resources/locale/navigator.dtd b/mozilla/browser/base/resources/locale/navigator.dtd index 80655d827af..50a900e2585 100644 --- a/mozilla/browser/base/resources/locale/navigator.dtd +++ b/mozilla/browser/base/resources/locale/navigator.dtd @@ -1,5 +1,3 @@ - - @@ -19,7 +17,7 @@ - + @@ -27,18 +25,18 @@ - + - + - + @@ -95,7 +93,6 @@ - @@ -113,7 +110,6 @@ - @@ -140,51 +136,49 @@ - + - + - - + + - - + + - - + + - - + + - - + - - + + - - + - + - + - + - + @@ -197,7 +191,7 @@ - +