www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c7e32c7ee6e0159e9a20d7b8e10c1af92c1a201f
parent b2dda2ec23cacf6d5f5e64499ade00001c948eb8
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 21 Jun 2011 19:55:00 +0000

Fix saving to collection


Diffstat:
Mchrome/content/zotero/browser.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js @@ -519,7 +519,7 @@ var Zotero_Browser = new function() { /* * Callback to be executed when an item has been finished */ - function itemDone(obj, item, collection) { + function itemDone(obj, dbItem, item, collection) { var title = item.title; var icon = Zotero.ItemTypes.getImageSrc(item.itemType); Zotero_Browser.progress.show(); @@ -528,7 +528,7 @@ var Zotero_Browser = new function() { // add item to collection, if one was specified if(collection) { - collection.addItem(item.getID()); + collection.addItem(dbItem.id); } if(Zotero_Browser.isScraping) { @@ -753,7 +753,7 @@ Zotero_Browser.Tab.prototype.translate = function(libraryID, collectionID) { this.page.hasBeenTranslated = true; } this.page.translate.clearHandlers("itemDone"); - this.page.translate.setHandler("itemDone", function(obj, dbItem, item) { Zotero_Browser.itemDone(obj, item, collection) }); + this.page.translate.setHandler("itemDone", function(obj, dbItem, item) { Zotero_Browser.itemDone(obj, dbItem, item, collection) }); this.page.translate.translate(libraryID); }