126193 - new bookmarks are added to closed (selected) folders. r=hewitt sr=ben a=asa

This commit is contained in:
blakeross%telocity.com 2002-03-16 04:58:16 +00:00
parent 03c03b0df8
commit 136971fec0

View File

@ -1574,9 +1574,10 @@
<method name="addBookmark">
<body><![CDATA[
const currentIndex = this.currentIndex;
var parentIndex;
if (this.outlinerBoxObject.view.rowCount) {
if (this.outlinerBoxObject.view.isContainer(currentIndex))
if (this.outlinerBoxObject.view.isContainerOpen(currentIndex))
parentIndex = currentIndex;
else
parentIndex = this.outlinerBoxObject.view.getParentIndex(currentIndex);
@ -1849,15 +1850,6 @@
return true;
]]></body>
</method>
<method name="newBookmark">
<body><![CDATA[
var insertAt = this.getNextRowIndex();
openDialog("chrome://communicator/content/bookmarks/addBookmark.xul", "",
"centerscreen,chrome,modal=yes,dialog=yes,resizable=no", null, null, folder, null, "newBookmark");
]]></body>
</method>
</implementation>
</binding>
<!-- Full Bookmarks Outliner, multi-columned -->