From d927d4148d35a65e258c9180a1a0518c1b632e8f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 4 Nov 2013 23:23:26 -0500 Subject: [PATCH] Don't delete collection on partial import --- chrome/content/zotero/fileInterface.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 784cc06c7a..f30bf84cb8 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -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")); } });