From d3ab296cf5fedb71fc64f085e92ad6310f645d1c Mon Sep 17 00:00:00 2001 From: rmzelle Date: Wed, 15 Jul 2015 21:21:51 -0400 Subject: [PATCH] Check single items in selection window --- chrome/content/zotero/ingester/selectitems.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/ingester/selectitems.js b/chrome/content/zotero/ingester/selectitems.js index 8f639248c7..52fe496514 100644 --- a/chrome/content/zotero/ingester/selectitems.js +++ b/chrome/content/zotero/ingester/selectitems.js @@ -64,6 +64,11 @@ Zotero_Ingester_Interface_SelectItems.init = function() { itemNode.setAttribute("checked", checked); listbox.appendChild(itemNode); } + + // Check item if there is only one + if (listbox.itemCount === 1) { + listbox.getItemAtIndex(0).setAttribute("checked", true); + } } /**