From e3054014f623d1dfb49313cbada80e58fc6d74c3 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Thu, 27 Jul 2006 14:54:11 +0000 Subject: [PATCH] History searching no longer works (89093). r=ben sr=alecf git-svn-id: svn://10.0.0.236/trunk@204632 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/history/history.js | 49 +++++++++++++------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/mozilla/suite/common/history/history.js b/mozilla/suite/common/history/history.js index 6b8e743a9dc..02061eed926 100644 --- a/mozilla/suite/common/history/history.js +++ b/mozilla/suite/common/history/history.js @@ -54,31 +54,32 @@ function HistoryInit() var windowNode = document.getElementById("history-window"); windowNode.setAttribute("windowtype", "history:searchresults"); } + document.getElementById("groupingMenu").setAttribute("hidden", "true"); } - - gPrefService = Components.classes["@mozilla.org/preferences;1"] - .getService(Components.interfaces.nsIPref); - try { - var grouping = gPrefService.GetCharPref("browser.history.grouping"); - } - catch(e) { - grouping = ""; - } - GroupBy(grouping); - if (gHistoryStatus) { // must be the window - switch(grouping) { - case "site": - document.getElementById("groupBySite").setAttribute("checked", "true"); - break; - case "none": - document.getElementById("groupByNone").setAttribute("checked", "true"); - break; - case "day": - default: - document.getElementById("groupByDay").setAttribute("checked", "true"); - } - } - + else { + gPrefService = Components.classes["@mozilla.org/preferences;1"] + .getService(Components.interfaces.nsIPref); + try { + var grouping = gPrefService.GetCharPref("browser.history.grouping"); + } + catch(e) { + grouping = ""; + } + GroupBy(grouping); + if (gHistoryStatus) { // must be the window + switch(grouping) { + case "site": + document.getElementById("groupBySite").setAttribute("checked", "true"); + break; + case "none": + document.getElementById("groupByNone").setAttribute("checked", "true"); + break; + case "day": + default: + document.getElementById("groupByDay").setAttribute("checked", "true"); + } + } + } gHistoryOutliner.focus(); gHistoryOutliner.outlinerBoxObject.view.selection.select(0); }