From 7260d4e2be65df5af2b7eed74fca09523153e7aa Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Wed, 20 Feb 2002 20:55:28 +0000 Subject: [PATCH] blocker 126704 - can't load history items. removing some unnecessary code. git-svn-id: svn://10.0.0.236/trunk@115112 18797224-902f-48f8-a5cc-f745e15eee43 --- .../xpfe/components/history/resources/history-panel.xul | 6 +++--- mozilla/xpfe/components/history/resources/history.js | 9 ++------- mozilla/xpfe/components/history/resources/history.xul | 3 +-- .../components/history/resources/historyTreeOverlay.xul | 3 ++- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/mozilla/xpfe/components/history/resources/history-panel.xul b/mozilla/xpfe/components/history/resources/history-panel.xul index 81a3cb9bc97..b430a980a09 100644 --- a/mozilla/xpfe/components/history/resources/history-panel.xul +++ b/mozilla/xpfe/components/history/resources/history-panel.xul @@ -22,9 +22,10 @@ --> + + - @@ -41,8 +42,7 @@ - + diff --git a/mozilla/xpfe/components/history/resources/history.js b/mozilla/xpfe/components/history/resources/history.js index c5f73904845..9e45db9ebd1 100644 --- a/mozilla/xpfe/components/history/resources/history.js +++ b/mozilla/xpfe/components/history/resources/history.js @@ -254,13 +254,8 @@ function collapseExpand() function OpenURL(aInNewWindow) { - var currentIndex = gHistoryOutliner.currentIndex; - if (isContainer(gHistoryOutliner, currentIndex)) { - if (gHistoryOutliner.getAttribute("clickcount") == "1") - gHistoryOutliner.outlinerBoxObject.view.toggleOpenState(currentIndex); - return false; - } - + var currentIndex = gHistoryOutliner.currentIndex; + var builder = gHistoryOutliner.builder.QueryInterface(Components.interfaces.nsIXULOutlinerBuilder); var url = builder.getResourceAtIndex(currentIndex).Value; if (aInNewWindow) { diff --git a/mozilla/xpfe/components/history/resources/history.xul b/mozilla/xpfe/components/history/resources/history.xul index f8866798cf1..1686d2f9387 100644 --- a/mozilla/xpfe/components/history/resources/history.xul +++ b/mozilla/xpfe/components/history/resources/history.xul @@ -138,8 +138,7 @@ - + diff --git a/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul b/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul index 1ee1a929f04..00836986cdb 100644 --- a/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul +++ b/mozilla/xpfe/components/history/resources/historyTreeOverlay.xul @@ -78,7 +78,8 @@ onkeypress="if (event.keyCode == 13) OpenURL(event.ctrlKey || event.metaKey);" onselect="this.outlinerBoxObject.view.selectionChanged(); historyOnSelect();" - ondraggesture="if (event.originalTarget.localName == 'outlinerchildren') nsDragAndDrop.startDrag(event, historyDNDObserver);"> + ondraggesture="if (event.originalTarget.localName == 'outlinerchildren') nsDragAndDrop.startDrag(event, historyDNDObserver);" + ondblclick="if (validClickConditions(event)) OpenURL(event.ctrlKey || event.metaKey);">