Don't delete collection on partial import

This commit is contained in:
Simon Kornblith 2013-11-04 23:23:26 -05:00
parent 4ee5ab3453
commit d927d4148d

View file

@ -328,12 +328,10 @@ var Zotero_File_Interface = new function() {
Zotero_File_Interface.Progress.close();
Zotero.UnresponsiveScriptIndicator.enable();
if (worked) {
if(importCollection) {
Zotero.Notifier.trigger('refresh', 'collection', importCollection.id);
}
} else {
if(importCollection) importCollection.erase();
if(importCollection) {
Zotero.Notifier.trigger('refresh', 'collection', importCollection.id);
}
if (!worked) {
window.alert(Zotero.getString("fileInterface.importError"));
}
});