only call Zotero.done() when finished

This commit is contained in:
Simon Kornblith 2011-02-12 19:12:38 +00:00
parent 86f08fac29
commit 8e29882889

View file

@ -8,7 +8,7 @@
"maxVersion":"", "maxVersion":"",
"priority":100, "priority":100,
"inRepository":true, "inRepository":true,
"lastUpdated":"2009-08-11 01:20:00" "lastUpdated":"2011-02-12 19:11:09"
} }
function detectWeb(doc, url){ function detectWeb(doc, url){
@ -76,9 +76,7 @@ function doWeb(doc, url){
}); });
marc.translate(); marc.translate();
}, function() { Zotero.done() })
Zotero.done();
})
Zotero.wait(); Zotero.wait();
} }