Don't delete collection on partial import
This commit is contained in:
parent
4ee5ab3453
commit
d927d4148d
1 changed files with 4 additions and 6 deletions
|
@ -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"));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue