correct automatic handlers
This commit is contained in:
parent
379888eec4
commit
32d97b9ef9
1 changed files with 2 additions and 3 deletions
|
@ -200,11 +200,10 @@ Zotero.Translate.Sandbox = {
|
||||||
"loadTranslator":function(translate, type) {
|
"loadTranslator":function(translate, type) {
|
||||||
const setDefaultHandlers = function(translate, translation) {
|
const setDefaultHandlers = function(translate, translation) {
|
||||||
if(Zotero.Utilities.isEmpty(translation._handlers)) {
|
if(Zotero.Utilities.isEmpty(translation._handlers)) {
|
||||||
if(type === "export") {
|
if(type !== "export") {
|
||||||
translation.setHandler("itemDone", function(obj, item) { item.complete() });
|
translation.setHandler("itemDone", function(obj, item) { item.complete() });
|
||||||
} else if(type === "web") {
|
|
||||||
translation.setHandler("selectItems", translate._handlers["selectItems"]);
|
|
||||||
}
|
}
|
||||||
|
translation.setHandler("selectItems", translate._handlers["selectItems"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue