From b80cdb2915cad5312a8874a67fe0b8afb2ae6ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 5 May 2017 10:51:06 +0300 Subject: [PATCH] A couple more changes to document prefs dialog --- chrome/content/zotero/bibliography.js | 9 +++++---- chrome/locale/en-US/zotero/zotero.dtd | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/bibliography.js b/chrome/content/zotero/bibliography.js index 4c23c1efdf..a673c31727 100644 --- a/chrome/content/zotero/bibliography.js +++ b/chrome/content/zotero/bibliography.js @@ -140,11 +140,12 @@ var Zotero_File_Interface_Bibliography = new function() { document.getElementById(method); } - // ONLY FOR integrationDocPrefs.xul: update status of displayAs, set - // bookmarks text + // ONLY FOR integrationDocPrefs.xul: set selected endnotes/footnotes isDocPrefs = !!document.getElementById("displayAs"); - if(document.getElementById("displayAs")) { + if (isDocPrefs) { if(_io.useEndnotes && _io.useEndnotes == 1) document.getElementById("displayAs").selectedIndex = 1; + let dialog = document.getElementById("zotero-doc-prefs-dialog"); + dialog.setAttribute('title', `${Zotero.clientName} - ${dialog.getAttribute('title')}`); } if(document.getElementById("formatUsing")) { if(_io.fieldType == "Bookmark") document.getElementById("formatUsing").selectedIndex = 1; @@ -257,7 +258,7 @@ var Zotero_File_Interface_Bibliography = new function() { } // ONLY FOR integrationDocPrefs.xul: - if(document.getElementById("displayAs")) { + if(isDocPrefs) { var automaticJournalAbbreviationsEl = document.getElementById("automaticJournalAbbreviations-checkbox"); _io.automaticJournalAbbreviations = automaticJournalAbbreviationsEl.checked; if(!automaticJournalAbbreviationsEl.hidden && lastSelectedStyle) { diff --git a/chrome/locale/en-US/zotero/zotero.dtd b/chrome/locale/en-US/zotero/zotero.dtd index 2adbfa201d..c9838b53fc 100644 --- a/chrome/locale/en-US/zotero/zotero.dtd +++ b/chrome/locale/en-US/zotero/zotero.dtd @@ -224,7 +224,7 @@ - +