From 0f68f17e7cb892fa60f81c33688c91a0837f5785 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 2 May 2001 22:31:26 +0000 Subject: [PATCH] fix for bug 54422 sr=ben/waterson - update status when user clicks on history items --- xpfe/components/history/resources/history.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xpfe/components/history/resources/history.js b/xpfe/components/history/resources/history.js index a7996eb988a..f618c512486 100644 --- a/xpfe/components/history/resources/history.js +++ b/xpfe/components/history/resources/history.js @@ -37,6 +37,7 @@ var gGlobalHistory; var gDeleteByHostname; var gDeleteByDomain; var gHistoryBundle; +var gHistoryStatus; function HistoryInit() { @@ -44,6 +45,7 @@ function HistoryInit() { gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); + gHistoryStatus = document.getElementById("statusbar-display"); var treeController = new nsTreeController(gHistoryTree); var historyController = new nsHistoryController; @@ -80,6 +82,10 @@ function historyOnSelect(event) if (match && match.length>1) gLastHostname = match[1]; + + gHistoryStatus.label = url; + } else { + gHistoryStatus.label = ""; } if (gLastHostname) { @@ -191,7 +197,7 @@ function OpenURL(event, node, root) return false; var url = node.id; - if (event.metaKey) + if (event.ctrlKey) // if metaKey is down, open in a new browser window window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", id ); else