зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 74036 (Comment change, code being touched is disabled)
Make sure the old "File Bookmark" logic moves /all/ bookmarks selected, not just every other one. Patch by Becki Sanford, r=ben, rs=hyatt
This commit is contained in:
Родитель
3afcf7678b
Коммит
06dff3a629
|
@ -260,8 +260,16 @@ var fileButton = {
|
|||
|
||||
if ("beginBatch" in this)
|
||||
this.beginBatch();
|
||||
for (var i = 0; i < bookmarksTree.selectedItems.length; ++i) {
|
||||
var currItem = bookmarksTree.selectedItems[i];
|
||||
|
||||
// Save the current selection
|
||||
var selectedItems = bookmarksTree.selectedItems;
|
||||
var numSelected = selectedItems.length;
|
||||
var selectionArray = new Array(numSelected);
|
||||
for (var i = 0; i < numSelected; i++)
|
||||
selectionArray[i] = selectedItems[i];
|
||||
|
||||
for (i = 0; i < numSelected; ++i) {
|
||||
var currItem = selectionArray[i];
|
||||
var currURI = NODE_ID(currItem);
|
||||
var parent = gBookmarksShell.findRDFNode(currItem, false);
|
||||
gBookmarksShell.moveBookmark(currURI, NODE_ID(parent), toFolderURI);
|
||||
|
|
Загрузка…
Ссылка в новой задаче