Merge pull request #800 from rmzelle/select-single-item

Check single items in selection window
This commit is contained in:
Dan Stillman 2015-07-15 23:55:21 -04:00
commit 45f0a9e28a

View file

@ -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);
}
}
/**