www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit b80cdb2915cad5312a8874a67fe0b8afb2ae6ac9
parent 43d12ee3b7e56121f8f28624f44a5e8d87c2e2f5
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Fri,  5 May 2017 10:51:06 +0300

A couple more changes to document prefs dialog

Diffstat:
Mchrome/content/zotero/bibliography.js | 9+++++----
Mchrome/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 @@ -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 @@ -224,7 +224,7 @@ <!ENTITY zotero.integration.prefs.footnotes.label "Footnotes"> <!ENTITY zotero.integration.prefs.endnotes.label "Endnotes"> -<!ENTITY zotero.integration.prefs.formatUsing.label "Format Using:"> +<!ENTITY zotero.integration.prefs.formatUsing.label "Store Citations as:"> <!ENTITY zotero.integration.prefs.bookmarks.label "Bookmarks"> <!ENTITY zotero.integration.prefs.bookmarks.caption "Bookmarks can be shared between Word and LibreOffice, but may cause errors if accidentally modified and cannot be inserted into footnotes.">