commit 612504f4419ba7ad37ac60c4721a4a7a31e976ec
parent 4190412ee4afd8a38148f51a773fb5746af67d6a
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 5 Mar 2016 01:25:42 -0500
Properly select items created via Attachments.importFromURL()
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js
@@ -311,7 +311,11 @@ Zotero.Attachments = new function(){
Zotero.Attachments.getPath(
file, Zotero.Attachments.LINK_MODE_IMPORTED_URL
);
+ var disabled = Zotero.Notifier.disable();
attachmentItem.save();
+ if (disabled) {
+ Zotero.Notifier.enable();
+ }
Zotero.Notifier.trigger('add', 'item', itemID);
Zotero.Notifier.trigger('modify', 'item', sourceItemID);