www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d3ab296cf5fedb71fc64f085e92ad6310f645d1c
parent 11fe33daefe789aa82bca55adf5f982e715ad09b
Author: rmzelle <rintze.zelle@gmail.com>
Date:   Wed, 15 Jul 2015 21:21:51 -0400

Check single items in selection window

Diffstat:
Mchrome/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); + } } /**