diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index 8d4a4a7f81..703a7dceed 100644 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -438,7 +438,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = { } // save snapshot - if(filesEditable) { + if (filesEditable && !data.skipSnapshot) { Zotero.Attachments.importFromDocument(doc, itemID); } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 5fb81aa905..1787c20dca 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3146,7 +3146,8 @@ var ZoteroPane = new function() // In connector, save page via Zotero Standalone var doc = window.content.document; Zotero.Connector.callMethod("saveSnapshot", {"url":doc.location.toString(), - "cookie":doc.cookie, "html":doc.documentElement.innerHTML}, + "cookie":doc.cookie, "html":doc.documentElement.innerHTML, + "skipSnapshot": saveSnapshot === false || (saveSnapshot === true ? false : undefined)}, function(returnValue, status) { _showPageSaveStatus(doc.title); });