From 1b0464ccf7a61d99f1ad5bc349f96a6de9064c48 Mon Sep 17 00:00:00 2001 From: "rjc%netscape.com" Date: Sat, 6 May 2000 07:57:36 +0000 Subject: [PATCH] Fixing ben's earliest checkin... don't obtain the extraneous "#URL" attribute eagerly, get it as needed. --- .../bookmarks/resources/bookmarks.js | 28 +++++++++++++------ .../bookmarks/resources/bookmarks.xul | 1 - 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/xpfe/components/bookmarks/resources/bookmarks.js b/xpfe/components/bookmarks/resources/bookmarks.js index df3545609c4..04c25396154 100644 --- a/xpfe/components/bookmarks/resources/bookmarks.js +++ b/xpfe/components/bookmarks/resources/bookmarks.js @@ -951,14 +951,24 @@ function doContextCmd(cmdName) return(true); } + + function bookmarkSelect() { - var tree = document.getElementById( "bookmarksTree" ); - var status = document.getElementById( "statusbar-text" ); - if( tree.selectedItems.length != 1 ) { - status.setAttribute( "value", "" ); - return; - } - var url = tree.selectedItems[0].getAttribute("location"); - status.setAttribute( "value", url ); -} \ No newline at end of file + var tree = document.getElementById( "bookmarksTree" ); + var status = document.getElementById( "statusbar-text" ); + var val = ""; + if( tree.selectedItems.length == 1 ) + { + val = getAbsoluteID("bookmarksTree", tree.selectedItems[0]); + + // Ignore "NC:" urls. + if (val.substring(0, 3) == "NC:") + { + val = ""; + } + } + status.setAttribute( "value", val ); + return(true); +} + diff --git a/xpfe/components/bookmarks/resources/bookmarks.xul b/xpfe/components/bookmarks/resources/bookmarks.xul index acd2ac11e30..e174c60a5bd 100644 --- a/xpfe/components/bookmarks/resources/bookmarks.xul +++ b/xpfe/components/bookmarks/resources/bookmarks.xul @@ -122,7 +122,6 @@