From 07acfb444af99aa2266bf06b641e1f8fb2f08185 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 27 Apr 2023 20:45:40 -0400 Subject: [PATCH] Z7: Fix Add Item by Identifier tests (and rename textbox) Now only one textbox, so no need to call it 'multiline' --- chrome/content/zotero/lookup.js | 6 +++--- chrome/content/zotero/zoteroPane.xhtml | 4 ++-- chrome/skin/default/zotero/overlay.css | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/lookup.js b/chrome/content/zotero/lookup.js index e4a400ac4a..9dfed64659 100644 --- a/chrome/content/zotero/lookup.js +++ b/chrome/content/zotero/lookup.js @@ -174,7 +174,7 @@ var Zotero_Lookup = new function () { // Ignore context menu if (event.originalTarget.id != 'zotero-lookup-panel') return; - document.getElementById("zotero-lookup-multiline-textbox").value = ""; + document.getElementById("zotero-lookup-textbox").value = ""; Zotero_Lookup.setShowProgress(false); // Revert to single-line when closing @@ -228,7 +228,7 @@ var Zotero_Lookup = new function () { this.setMultiline = function (on) { - var mlTxtBox = document.getElementById("zotero-lookup-multiline-textbox"); + var mlTxtBox = document.getElementById("zotero-lookup-textbox"); var mlButtons = document.getElementById('zotero-lookup-buttons'); mlTxtBox.rows = on ? 5 : 1; @@ -248,7 +248,7 @@ var Zotero_Lookup = new function () { // In Firefox 52.6.0, progressmeters burn CPU at idle on Linux when undetermined, even // if they're hidden. (Being hidden is enough on macOS.) - document.getElementById("zotero-lookup-multiline-textbox").disabled = !!on; + document.getElementById("zotero-lookup-textbox").disabled = !!on; var p = document.getElementById("zotero-lookup-multiline-progress"); if (on) { p.removeAttribute('value'); diff --git a/chrome/content/zotero/zoteroPane.xhtml b/chrome/content/zotero/zoteroPane.xhtml index 8ceba01b01..c2eaa05086 100644 --- a/chrome/content/zotero/zoteroPane.xhtml +++ b/chrome/content/zotero/zoteroPane.xhtml @@ -775,7 +775,7 @@