A couple more changes to document prefs dialog

This commit is contained in:
Adomas Venčkauskas 2017-05-05 10:51:06 +03:00
parent 43d12ee3b7
commit b80cdb2915
2 changed files with 6 additions and 5 deletions

View file

@ -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) {

View file

@ -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.">