diff --git a/chrome/content/zotero/longTagFixer.js b/chrome/content/zotero/longTagFixer.js index d2dd331c83..bc0c118ee8 100644 --- a/chrome/content/zotero/longTagFixer.js +++ b/chrome/content/zotero/longTagFixer.js @@ -125,8 +125,7 @@ var Zotero_Long_Tag_Fixer = new function () { // eslint-disable-line camelcase, } tags.forEach((tag) => { - const li = document.createElement('richlistitem'); - const div = document.createElement('div'); + const li = document.createXULElement('richlistitem'); const checkbox = document.createElement('input'); checkbox.type = 'checkbox'; checkbox.checked = true; @@ -134,11 +133,9 @@ var Zotero_Long_Tag_Fixer = new function () { // eslint-disable-line camelcase, const label = document.createElement('label'); label.setAttribute('for', 'tag-' + tag); label.textContent = tag; - // Don't toggle checkbox for single-click on label - div.appendChild(checkbox); - div.appendChild(label); - li.appendChild(div); + li.appendChild(checkbox); + li.appendChild(label); this.listbox.append(li); }); diff --git a/chrome/content/zotero/longTagFixer.xhtml b/chrome/content/zotero/longTagFixer.xhtml index 844e15c6bf..de042f1ba9 100644 --- a/chrome/content/zotero/longTagFixer.xhtml +++ b/chrome/content/zotero/longTagFixer.xhtml @@ -8,13 +8,14 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" title="&zotero.sync.error;" + width="600" onload="Zotero_Long_Tag_Fixer.init()"> -