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.
This commit is contained in:
Abe Jellinek 2024-01-26 13:40:16 -05:00
parent 00ca99ae86
commit 7f993167b4

View file

@ -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));
}
}