Call Zotero.wait() only for import and export translators, since it causes problems with both badly asynced translators and attachment saving

This commit is contained in:
Dan Stillman 2009-08-19 22:00:54 +00:00
parent 4e48c32a0e
commit 35344f5f05

View File

@ -1682,8 +1682,10 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) {
delete item;
// Allow progress meter to update
if (this.type == 'import' || this.type == 'export') {
Zotero.wait();
}
}
/*
* executed when a collection is done and ready to be loaded into the database