44 if (!this._foldersTree)
45 this._foldersTree = document.getElementById(
"foldersTree");
47 return this._foldersTree;
51 this._nodes =
window.arguments[0];
53 this.foldersTree.place =
54 "place:excludeItems=1&excludeQueries=1&excludeReadOnlyFolders=1&folder=" +
58 onOK:
function MBD_onOK(aEvent) {
59 var selectedNode = this.foldersTree.selectedNode;
61 "selectedNode must be set in a single-selection tree with initial selection set");
62 var selectedFolderID = PlacesUtils.getConcreteItemId(selectedNode);
64 var transactions = [];
65 for (var
i=0;
i < this._nodes.length;
i++) {
67 if (this._nodes[
i].parent.itemId == selectedFolderID)
71 PlacesUIUtils.ptm.moveItem(
this._nodes[
i].itemId, selectedFolderID, -1));
74 if (transactions.length != 0) {
75 var txn =
PlacesUIUtils.ptm.aggregateTransactions(
"Move Items", transactions);
80 newFolder:
function MBD_newFolder() {
82 this.foldersTree.focus();
83 goDoCommand(
"placesCmd_new:folder");
function NS_ASSERT(cond, msg)
_getSelectedPageStyle s i