Merge pull request #800 from rmzelle/select-single-item
Check single items in selection window
This commit is contained in:
commit
45f0a9e28a
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue