select new bookmark after creation bug 44813, patch by Pete Zha r=bz sr=blake a=asa

git-svn-id: svn://10.0.0.236/trunk@118388 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bernd.mielke%snafu.de
2002-04-06 19:01:46 +00:00
parent c722c5651b
commit 5bcdaf6a0f
2 changed files with 11 additions and 2 deletions

View File

@@ -253,7 +253,10 @@ function onOK()
}
} else {
url = getNormalizedURL(gFld_URL.value);
kBMS.createBookmarkWithDetails(gFld_Name.value, url, gBookmarkCharset, rFolder, -1);
var newBookmark = kBMS.createBookmarkWithDetails(gFld_Name.value, url, gBookmarkCharset, rFolder, -1);
if (window.arguments[4] == "newBookmark") {
window.arguments[5].newBookmark = newBookmark;
}
}
}
}

View File

@@ -1589,8 +1589,14 @@
parentURI = this.rdf.GetResource("NC:BookmarksRoot").Value;
else
parentURI = this.treeBuilder.getResourceAtIndex(parentIndex).Value;
var rv = { newBookmark: null };
openDialog("chrome://communicator/content/bookmarks/addBookmark.xul", "",
"centerscreen,chrome,modal=yes,dialog=yes,resizable=no", null, null, parentURI, null, "newBookmark");
"centerscreen,chrome,modal=yes,dialog=yes,resizable=no", null, null, parentURI, null, "newBookmark", rv);
if (rv.newBookmark) {
var ind = this.treeBuilder.getIndexOfResource(rv.newBookmark);
this.treeBoxObject.selection.select(ind);
}
]]></body>
</method>
<method name="fileBookmark">