Bug 743692. (Fv2-FF) nsBrowserGlue.js: fix 2 nits. r=mak77 a=(desktop-only).

This commit is contained in:
Serge Gautherie 2012-04-19 17:15:30 +02:00
Родитель 22dcf070ff
Коммит 49f1a46346
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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