www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d927d4148d35a65e258c9180a1a0518c1b632e8f
parent 4ee5ab34531b445dc547e5fa0839db212c7841b9
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  4 Nov 2013 23:23:26 -0500

Don't delete collection on partial import

Diffstat:
Mchrome/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 @@ -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")); } });