From 6b335fd36316b4a09132a746ba214f591abc8b71 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 9 Mar 2011 06:23:39 +0000 Subject: [PATCH] Display no more than 20 items in collection-item conflict message --- chrome/content/zotero/xpcom/sync.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index cc3f2df18a..c57c2cf9d9 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -3428,15 +3428,22 @@ Zotero.Sync.Server.Data = new function() { introMsg += " The following items have been added to the collection:"; var itemText = []; - for each(var id in addedItemIDs) { + var max = addedItemIDs.length; + for (var i=0; i 20) { + itemText.push(" \u2022 ..."); + break; + } } return introMsg + "\n\n" + itemText.join("\n"); }