From c6be453564944fff1a207dbe260e3f3ec3f0486d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 10 Jun 2012 22:36:00 -0400 Subject: [PATCH] Attachment progress in connector --- .../zotero/xpcom/connector/translate_item.js | 74 ++++++++++++++++++- .../content/zotero/xpcom/server_connector.js | 10 ++- 2 files changed, 78 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/xpcom/connector/translate_item.js b/chrome/content/zotero/xpcom/connector/translate_item.js index 5d224e3cb..6b86351c2 100644 --- a/chrome/content/zotero/xpcom/connector/translate_item.js +++ b/chrome/content/zotero/xpcom/connector/translate_item.js @@ -79,10 +79,23 @@ Zotero.Translate.ItemSaver.prototype = { payload.cookie = this._cookie; } - Zotero.Connector.callMethod("saveItems", payload, function(success, status) { - if(success !== false) { + Zotero.Connector.callMethod("saveItems", payload, function(data, status) { + if(data !== false) { Zotero.debug("Translate: Save via Standalone succeeded"); + var haveAttachments = false; + if(data.items) { + for(var i=0; i