Bug 415062 - Bookmark this Link - Cancel not working. patch from Michael Schonfeld <dev@schonfeld.org>, r=me.

This commit is contained in:
mozilla.mano@sent.com 2008-02-13 07:43:17 -08:00
parent 4449a9734d
commit 14ea3a0e7a

View File

@ -431,10 +431,10 @@ var PlacesCommandHook = {
var linkURI = makeURI(aURL);
var itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI);
if (itemId == -1) {
StarUI.beginBatch();
var txn = PlacesUtils.ptm.createItem(linkURI, aParent, -1, aTitle);
PlacesUtils.ptm.doTransaction(txn);
itemId = PlacesUtils.getMostRecentBookmarkForURI(linkURI);
StarUI.beginBatch();
}
StarUI.showEditBookmarkPopup(itemId, getBrowser(), "overlap");