From 7f993167b41b9e9f862a6ad17ca0871ca8999481 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 26 Jan 2024 13:40:16 -0500 Subject: [PATCH] Fix regression that broke Date field tooltip Field inputs are XUL in Z6, HTML in pre-redesign Z7, and XUL again in post-redesign Z7. We switched to the title attribute for HTML but didn't switch back to tooltipText when going back to XUL. --- chrome/content/zotero/elements/itemBox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index 5819f6b7d9..0490e82dd1 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -1526,8 +1526,7 @@ // Display the SQL date as a tooltip for date fields // TEMP - filingDate if (Zotero.ItemFields.isFieldOfBase(fieldID, 'date') || fieldName == 'filingDate') { - valueElement.setAttribute('title', - Zotero.Date.multipartToSQL(this.item.getField(fieldName, true))); + valueElement.tooltipText = Zotero.Date.multipartToSQL(this.item.getField(fieldName, true)); } }