Check single items in selection window
This commit is contained in:
parent
11fe33daef
commit
d3ab296cf5
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