commit 45f0a9e28a9732ff0fd0c1ac36701c82a65c7157 parent 11fe33daefe789aa82bca55adf5f982e715ad09b Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 15 Jul 2015 23:55:21 -0400 Merge pull request #800 from rmzelle/select-single-item Check single items in selection window Diffstat:
| M | chrome/content/zotero/ingester/selectitems.js | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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); + } } /**