diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-08 16:25:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 16:25:07 -0500 |
commit | 16321a1f8c9902be100b01067e1593694fa51341 (patch) | |
tree | 2cb25c4fe0447e58c91338cdce69e7b370518d25 /ext/bg/js/anki-note-builder.js | |
parent | 4e3040941038acc4f739e4077aee14cb64d3aa81 (diff) |
Add duplicate check option (#1012)
* Add anki.checkForDuplicates option
* Use checkForDuplicates for button display
* Add property to card creation
Diffstat (limited to 'ext/bg/js/anki-note-builder.js')
-rw-r--r-- | ext/bg/js/anki-note-builder.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/anki-note-builder.js b/ext/bg/js/anki-note-builder.js index aa76ecd9..4ac597da 100644 --- a/ext/bg/js/anki-note-builder.js +++ b/ext/bg/js/anki-note-builder.js @@ -31,6 +31,7 @@ class AnkiNoteBuilder { context, templates, tags=[], + checkForDuplicates=true, duplicateScope='collection', resultOutputMode='split', compactGlossaries=false, @@ -60,6 +61,7 @@ class AnkiNoteBuilder { deckName: deck, modelName: model, options: { + allowDuplicate: !checkForDuplicates, duplicateScope, duplicateScopeOptions: { deckName: duplicateScopeDeckName, |