From e35f254fa1153c4c42fa6835c8dd5d47308717ba Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 15 Aug 2013 15:35:58 -0400 Subject: [PATCH] Use API v2 in connector, part 1 --- .../zotero/xpcom/connector/translate_item.js | 109 ++++++++---------- .../zotero/xpcom/translation/translate.js | 4 +- chrome/content/zotero/xpcom/utilities.js | 11 +- 3 files changed, 57 insertions(+), 67 deletions(-) diff --git a/chrome/content/zotero/xpcom/connector/translate_item.js b/chrome/content/zotero/xpcom/connector/translate_item.js index 60803612f1..545ae86da6 100644 --- a/chrome/content/zotero/xpcom/connector/translate_item.js +++ b/chrome/content/zotero/xpcom/connector/translate_item.js @@ -106,8 +106,6 @@ Zotero.Translate.ItemSaver.prototype = { }); }, - // ALL CODE BELOW THIS POINT IS EXECUTED ONLY IN NON-FIREFOX ENVIRONMENTS - /** * Polls for updates to attachment progress * @param items Items in Zotero.Item.toArray() format @@ -162,6 +160,8 @@ Zotero.Translate.ItemSaver.prototype = { poll(); }, + // ALL CODE BELOW THIS POINT IS EXECUTED ONLY IN NON-FIREFOX ENVIRONMENTS + /** * Saves items to server * @param items Items in Zotero.Item.toArray() format @@ -182,7 +182,7 @@ Zotero.Translate.ItemSaver.prototype = { for(var i=0, n=items.length; i