--- original/bookmarksMenu.js 2003-05-23 05:03:12.000000000 -0400 +++ bookmarksMenu.js 2003-07-18 23:49:10.000000000 -0400 @@ -39,6 +39,8 @@ _selection:null, _target:null, _orientation:null, + statusbarLabel:'', + statusbarIsSaved:false, ////////////////////////////////////////////////////////////////////////// @@ -272,6 +274,34 @@ var rSource = RDF.GetResource(aTarget.id); var selection = BookmarksUtils.getSelectionFromResource(rSource); BookmarksCommand.openBookmark(selection, "current", aDS) + }, + + showBookmarkURL: function (aTarget, aDS) + { + if (aTarget.id != '' && BookmarksUtils.resolveType(aTarget.id) == 'Bookmark') + { + var url = BookmarksUtils.getProperty(aTarget.id, NC_NS+'URL', aDS); + var statusbar = document.getElementById('statusbar-display'); + // Need to check this because we can get the mouseover event before + // the mouseout event from a previous bookmark in subfolders + if (!this.statusbarIsSaved) + { + this.statusbarLabel = statusbar.label; + this.statusbarIsSaved = true; + } + statusbar.label = url; + } + }, + + hideBookmarkURL: function (aTarget) + { + // Only restore if the label was set + if (aTarget.id != '' && BookmarksUtils.resolveType(aTarget.id) == 'Bookmark') + { + var statusbar = document.getElementById('statusbar-display'); + statusbar.label = this.statusbarLabel; + this.statusbarIsSaved = false; + } } }