From 14495b59825513d3219ccc78ed8c535fd98ff09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 31 Mar 2026 12:27:58 +0300 Subject: [PATCH] Citation Explorer: enable add to button on any row --- chrome/content/zotero/integration/citationExplorer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/integration/citationExplorer.js b/chrome/content/zotero/integration/citationExplorer.js index b6c5a20ed3..b5917adb76 100644 --- a/chrome/content/zotero/integration/citationExplorer.js +++ b/chrome/content/zotero/integration/citationExplorer.js @@ -690,12 +690,12 @@ window.ZoteroCitationExplorer = { let focusedRow = itemList.getRow(itemList.selection.focused); let isItemRow = focusedRow instanceof CitationExplorerItemTreeRow; let isUnlinked = isItemRow && !focusedRow.isLinked; - let noneSelected = selectedRows.length === 0; + let noneItemsSelected = selectedRows.length === 0; let anyUnlinkedSelected = selectedRows.some(row => !row.isLinked); - document.querySelector('#button-show-in-zotero').disabled = noneSelected || !isItemRow || isUnlinked; - document.querySelector('#button-relink-item').disabled = noneSelected || !anyUnlinkedSelected; - document.querySelector('#button-addTo-library').disabled = noneSelected || !anyUnlinkedSelected; + document.querySelector('#button-show-in-zotero').disabled = noneItemsSelected || !isItemRow || isUnlinked; + document.querySelector('#button-relink-item').disabled = noneItemsSelected || !anyUnlinkedSelected; + document.querySelector('#button-addTo-library').disabled = noneItemsSelected; await this.refreshCitationList(); },