Bug 432213 - Bookmark dialog position incorrectly when bookmarking frame. r=mak77, ui-r=limi

This commit is contained in:
Blair McBride 2009-10-01 16:10:53 +02:00
Родитель 2be5c0224b
Коммит f2c8ea639b
1 изменённых файлов: 4 добавлений и 10 удалений

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

@ -1380,17 +1380,11 @@ nsContextMenu.prototype = {
if (itemId == -1) {
var title = doc.title;
var description = PlacesUIUtils.getDescriptionFromDocument(doc);
var descAnno = { name: DESCRIPTION_ANNO, value: description };
var txn = PlacesUIUtils.ptm.createItem(uri,
PlacesUtils.bookmarksMenuFolderId,
-1, title, null, [descAnno]);
PlacesUIUtils.ptm.doTransaction(txn);
itemId = PlacesUtils.getMostRecentBookmarkForURI(uri);
StarUI.beginBatch();
PlacesUIUtils.showMinimalAddBookmarkUI(uri, title, description);
}
window.top.StarUI.showEditBookmarkPopup(itemId, this.browser, "overlap");
else
PlacesUIUtils.showItemProperties(itemId,
PlacesUtils.bookmarks.TYPE_BOOKMARK);
},
savePageAs: function CM_savePageAs() {