mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
126193 - new bookmarks are added to closed (selected) folders. r=hewitt sr=ben a=asa
This commit is contained in:
parent
03c03b0df8
commit
136971fec0
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user