mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
Fix nsbeta2+ bug # 39539: fix bookmarks so that new items can be created. r=ben@netscape.com
This commit is contained in:
parent
77b756b7bf
commit
5213c4dd6c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user