Fix saving to collection
This commit is contained in:
parent
b2dda2ec23
commit
c7e32c7ee6
|
@ -519,7 +519,7 @@ var Zotero_Browser = new function() {
|
||||||
/*
|
/*
|
||||||
* Callback to be executed when an item has been finished
|
* 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 title = item.title;
|
||||||
var icon = Zotero.ItemTypes.getImageSrc(item.itemType);
|
var icon = Zotero.ItemTypes.getImageSrc(item.itemType);
|
||||||
Zotero_Browser.progress.show();
|
Zotero_Browser.progress.show();
|
||||||
|
@ -528,7 +528,7 @@ var Zotero_Browser = new function() {
|
||||||
|
|
||||||
// add item to collection, if one was specified
|
// add item to collection, if one was specified
|
||||||
if(collection) {
|
if(collection) {
|
||||||
collection.addItem(item.getID());
|
collection.addItem(dbItem.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Zotero_Browser.isScraping) {
|
if(Zotero_Browser.isScraping) {
|
||||||
|
@ -753,7 +753,7 @@ Zotero_Browser.Tab.prototype.translate = function(libraryID, collectionID) {
|
||||||
this.page.hasBeenTranslated = true;
|
this.page.hasBeenTranslated = true;
|
||||||
}
|
}
|
||||||
this.page.translate.clearHandlers("itemDone");
|
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);
|
this.page.translate.translate(libraryID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user