Bug 382101 - Cannot move bookmark folder to the 'root'. r=sspitzer.

This commit is contained in:
mozilla.mano%sent.com 2007-05-31 00:34:13 +00:00
Родитель 58ecd34dc5
Коммит 1fe6965ed9
2 изменённых файлов: 12 добавлений и 8 удалений

Просмотреть файл

@ -50,17 +50,19 @@ var gMoveBookmarksDialog = {
init: function() {
this._nodes = window.arguments[0];
this._tm = window.arguments[1];
// setTimeout until bug 373944 is fixed
setTimeout(function(aSelf) {
// select and expand the root node
aSelf.foldersTree.selectFolders([PlacesUtils.bookmarksRootId]);
aSelf.foldersTree.selectedNode.containerOpen = true;
}, 0, this);
},
onOK: function MBD_onOK(aEvent) {
var selectedNode = this.foldersTree.selectedNode;
if (!selectedNode) {
// XXXmano: the old dialog defaults to the the "Bookmarks" root folder
// for some reason. I'm pretty sure we don't want to that yet in Places,
// at least not until we make that folder node visible in the tree, if we
// ever do so
return;
}
NS_ASSERT(selectedNode,
"selectedNode must be set in a single-selection tree with initial selection set");
var selectedFolderID = selectedNode.itemId;
var transactions = [];

Просмотреть файл

@ -66,7 +66,9 @@
<tree id="foldersTree"
class="placesTree"
flex="1"
type="places"
type="places"
showRoot="true"
seltype="single"
place="place:folder=2&amp;group=3&amp;excludeItems=1&amp;excludeReadOnlyFolders=1"
hidecolumnpicker="true">
<treecols>