Properly select items created via Attachments.importFromURL()

This commit is contained in:
Dan Stillman 2016-03-05 01:25:42 -05:00
parent 4190412ee4
commit 612504f441

View file

@ -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);