Fixing ben's earliest checkin... don't obtain the extraneous "#URL" attribute eagerly, get it as needed.

This commit is contained in:
rjc%netscape.com 2000-05-06 07:57:36 +00:00
Родитель 1690284d2b
Коммит 1b0464ccf7
2 изменённых файлов: 19 добавлений и 10 удалений

Просмотреть файл

@ -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 val = "";
if( tree.selectedItems.length == 1 )
{
val = getAbsoluteID("bookmarksTree", tree.selectedItems[0]);
// Ignore "NC:" urls.
if (val.substring(0, 3) == "NC:")
{
val = "";
}
var url = tree.selectedItems[0].getAttribute("location");
status.setAttribute( "value", url );
}
status.setAttribute( "value", val );
return(true);
}

Просмотреть файл

@ -122,7 +122,6 @@
<rule>
<treechildren>
<treeitem uri="rdf:*" persist="open"
location="rdf:http://home.netscape.com/NC-rdf#URL"
web:status="rdf:http://home.netscape.com/WEB-rdf#status"
rdf:type="rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#type"
loading="rdf:http://home.netscape.com/NC-rdf#loading">