Show delayed citations checkbox in doc prefs dialog after initialization

Closes #1458
This commit is contained in:
Adomas Venčkauskas 2018-03-05 14:26:57 +02:00
parent 5a1cf3ab02
commit 13766e1f6c
2 changed files with 2 additions and 4 deletions

View file

@ -215,9 +215,8 @@ var Zotero_File_Interface_Bibliography = new function() {
document.getElementById("automaticJournalAbbreviations-vbox").hidden = document.getElementById("automaticJournalAbbreviations-vbox").hidden =
!selectedStyleObj.usesAbbreviation; !selectedStyleObj.usesAbbreviation;
// Hide the automaticCitationUpdates checkbox before the prompt is shown // Hide the automaticCitationUpdates checkbox the first time document preferences are open
var showAutomaticUpdatesOption = Zotero.Prefs.get('integration.alwaysShowAutomaticUpdatesOption') var showAutomaticUpdatesOption = !!_io.fieldType;
|| _io.dontAskDelayCitationUpdates !== undefined;
document.getElementById("automaticCitationUpdates-vbox").hidden = !showAutomaticUpdatesOption; document.getElementById("automaticCitationUpdates-vbox").hidden = !showAutomaticUpdatesOption;
// Highlight delay citations checkbox after displaying the alert // Highlight delay citations checkbox after displaying the alert

View file

@ -129,7 +129,6 @@ pref("extensions.zotero.integration.port", 50001);
pref("extensions.zotero.integration.autoRegenerate", -1); // -1 = ask; 0 = no; 1 = yes pref("extensions.zotero.integration.autoRegenerate", -1); // -1 = ask; 0 = no; 1 = yes
pref("extensions.zotero.integration.useClassicAddCitationDialog", false); pref("extensions.zotero.integration.useClassicAddCitationDialog", false);
pref("extensions.zotero.integration.keepAddCitationDialogRaised", false); pref("extensions.zotero.integration.keepAddCitationDialogRaised", false);
pref("extensions.zotero.integration.alwaysShowAutomaticUpdatesOption", false);
// Connector settings // Connector settings
pref("extensions.zotero.httpServer.enabled", false); // TODO enabled for testing only pref("extensions.zotero.httpServer.enabled", false); // TODO enabled for testing only