From a49e4e5449a8d5550d6bdf93071112f9b4a41d7d Mon Sep 17 00:00:00 2001 From: abaevbog Date: Fri, 14 Mar 2025 04:31:58 -0700 Subject: [PATCH] citation dlg: only do not hide X when search runs (#5116) Instead, when the search runs, replace just the accept button with the spinner. Fixes: #5115 --- chrome/content/zotero/integration/citationDialog.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/integration/citationDialog.js b/chrome/content/zotero/integration/citationDialog.js index 0c8fe498e1..f22b0c4d11 100644 --- a/chrome/content/zotero/integration/citationDialog.js +++ b/chrome/content/zotero/integration/citationDialog.js @@ -243,11 +243,7 @@ class Layout { async search(value, { skipDebounce = false } = {}) { if (accepted) return; _id("loading-spinner").setAttribute("status", "animate"); - for (let node of _id("top-level-btn-group").childNodes) { - if (node.id !== "loading-spinner") { - node.hidden = true; - } - } + _id("accept-button").hidden = true; SearchHandler.searching = true; // search for selected/opened/cited items // only enforce min query length in list mode @@ -284,9 +280,7 @@ class Layout { SearchHandler.searching = false; _id("loading-spinner").removeAttribute("status"); - for (let node of _id("top-level-btn-group").childNodes) { - node.hidden = false; - } + _id("accept-button").hidden = false; if (this.forceUpdateTablesAfterRefresh && this.type == "library") { this.forceUpdateTablesAfterRefresh = false; setTimeout(() => {