зеркало из https://github.com/mozilla/pjs.git
Fixing ben's earliest checkin... don't obtain the extraneous "#URL" attribute eagerly, get it as needed.
This commit is contained in:
Родитель
1690284d2b
Коммит
1b0464ccf7
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче