summaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-18 08:01:38 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-18 08:01:38 +0300
commit552185ffb4c79228d3a6cc9391910f03449a3418 (patch)
treef22341c9482e845616ba3698f5c3e10755b19873 /ext/bg/js/options.js
parent966fa2ff7525284c72d2a3f5280bcedee8c211b2 (diff)
Anki: fixup for note template
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 11dab7c2..00e1b5d7 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -269,6 +269,14 @@ function optionsVersion(options) {
}
options.general.compactTags = false;
options.general.compactGlossaries = false;
+ if (options.anki.fieldTemplates !== optionsFieldTemplates()) {
+ options.anki.fieldTemplates = '{{#if merge}}\n' +
+ optionsFieldTemplates() +
+ '\n{{else}}\n' +
+ options.anki.fieldTemplates +
+ '\n{{/if}}';
+
+ }
}
];