Fix nsbeta2+ bug # 39539: fix bookmarks so that new items can be created. r=ben@netscape.com

This commit is contained in:
rjc%netscape.com 2000-06-20 01:47:15 +00:00
parent 77b756b7bf
commit 5213c4dd6c

View File

@ -1188,17 +1188,11 @@ function doContextCmd(cmdName)
// get the parent's URI
var parentURI = "";
var theParent = node;
while (theParent)
var theParent = node.parentNode.parentNode;
parentURI = theParent.getAttribute("ref");
if ((!parentURI) || (parentURI == ""))
{
theParent = theParent.parentNode;
parentURI = theParent.getAttribute("ref");
if ((!parentURI) || (parentURI == ""))
{
parentURI = theParent.getAttribute("id");
}
if (parentURI != "") break;
}
if (parentURI == "") return false;