From 668c84fed587c47c9cb0c66fdb863b4a29b38daf Mon Sep 17 00:00:00 2001 From: abaevbog Date: Tue, 2 Jul 2024 22:58:04 -0700 Subject: [PATCH] always open duplicatesPane itembox (#4323) Since the header of the collapsible section is not visible, there is no way to expand the itemBox if it was collapsed before dulicate items are selected. With this, itembox is always opened when a new set of duplicate items is selected. Fixes: #4318 --- chrome/content/zotero/elements/duplicatesMergePane.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/elements/duplicatesMergePane.js b/chrome/content/zotero/elements/duplicatesMergePane.js index c6de738860..48e94ac5ad 100644 --- a/chrome/content/zotero/elements/duplicatesMergePane.js +++ b/chrome/content/zotero/elements/duplicatesMergePane.js @@ -139,6 +139,8 @@ button.label = Zotero.getString('pane.item.duplicates.mergeItems', (otherItems.length + 1)); versionSelect.hidden = fieldSelect.hidden = !alternatives; itembox.hiddenFields = alternatives ? [] : ['dateAdded', 'dateModified']; + // Since the header of the collapsible section is hidden, the section has to be opened + itembox.open = true; this.setMaster(0);