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

git-svn-id: svn://10.0.0.236/trunk@245612 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com
2008-02-13 15:43:17 +00:00
parent 6304d644ad
commit 5de71ffc06

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");