mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Scaffold: Use native checkboxes in select dialog
This commit is contained in:
parent
9510eef69a
commit
465cc89ad6
1 changed files with 4 additions and 2 deletions
|
|
@ -61,11 +61,13 @@ Zotero_Ingester_Interface_SelectItems.init = function () {
|
|||
title = item;
|
||||
}
|
||||
|
||||
let itemNode = document.createXULElement("richlistitem");
|
||||
let checkbox = document.createXULElement("checkbox");
|
||||
checkbox.checked = checked;
|
||||
checkbox.label = title;
|
||||
itemNode.setAttribute("value", i);
|
||||
checkbox.setAttribute('native', 'true');
|
||||
|
||||
let itemNode = document.createXULElement("richlistitem");
|
||||
itemNode.value = i;
|
||||
itemNode.append(checkbox);
|
||||
itemNode.addEventListener('click', (event) => {
|
||||
if (event.target == itemNode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue