зеркало из https://github.com/mozilla/pjs.git
Bug 743692. (Fv2-FF) nsBrowserGlue.js: fix 2 nits. r=mak77 a=(desktop-only).
This commit is contained in:
Родитель
22dcf070ff
Коммит
49f1a46346
|
@ -1413,7 +1413,7 @@ BrowserGlue.prototype = {
|
|||
parent: PlacesUtils.bookmarksMenuFolderId,
|
||||
position: menuIndex++,
|
||||
newInVersion: 1
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
// Set current itemId, parent and position if Smart Bookmark exists,
|
||||
|
@ -1424,9 +1424,9 @@ BrowserGlue.prototype = {
|
|||
let queryId = PlacesUtils.annotations.getItemAnnotation(itemId, SMART_BOOKMARKS_ANNO);
|
||||
if (queryId in smartBookmarks) {
|
||||
let smartBookmark = smartBookmarks[queryId];
|
||||
smartBookmarks[queryId].itemId = itemId;
|
||||
smartBookmarks[queryId].parent = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
|
||||
smartBookmarks[queryId].position = PlacesUtils.bookmarks.getItemIndex(itemId);
|
||||
smartBookmark.itemId = itemId;
|
||||
smartBookmark.parent = PlacesUtils.bookmarks.getFolderIdForItem(itemId);
|
||||
smartBookmark.position = PlacesUtils.bookmarks.getItemIndex(itemId);
|
||||
}
|
||||
else {
|
||||
// We don't remove old Smart Bookmarks because user could still
|
||||
|
|
Загрузка…
Ссылка в новой задаче