Bug 762824 - Move Bookmark stopped working. r=Neil a=Ratty
authorJens Hatlak <jh@junetz.de>
Fri, 08 Jun 2012 15:43:43 +0200
changeset 11870 20a9998d99a7e111032647972780d03c90c87b46
parent 11867 9c0b3acdbc8a02510e4b590ff98bf7b7b7fd51c0
child 11871 3587fa928b38c7d9159921ba0e15fadb43d8b3f0
push id543
push userjh@junetz.de
push dateFri, 08 Jun 2012 13:48:45 +0000
treeherdercomm-beta@20a9998d99a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, Ratty
bugs762824
Bug 762824 - Move Bookmark stopped working. r=Neil a=Ratty
suite/common/bookmarks/moveBookmarks.js
--- a/suite/common/bookmarks/moveBookmarks.js
+++ b/suite/common/bookmarks/moveBookmarks.js
@@ -62,19 +62,19 @@ var gMoveBookmarksDialog = {
     var selectedFolderID = PlacesUtils.getConcreteItemId(selectedNode);
 
     var transactions = [];
     for (var i=0; i < this._nodes.length; i++) {
       // Nothing to do if the node is already under the selected folder
       if (this._nodes[i].parent.itemId == selectedFolderID)
         continue;
 
-      let txn = PlacesMoveItemTransaction(this._nodes[i].itemId,
-                                          selectedFolderID,
-                                          PlacesUtils.bookmarks.DEFAULT_INDEX);
+      let txn = new PlacesMoveItemTransaction(this._nodes[i].itemId,
+                                              selectedFolderID,
+                                              PlacesUtils.bookmarks.DEFAULT_INDEX);
       transactions.push(txn);
     }
 
     if (transactions.length != 0) {
       let txn = new PlacesAggregatedTransaction("Move Items", transactions);
       PlacesUtils.transactionManager.doTransaction(txn);
     }
   },