diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-05 05:21:07 +0300 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2017-10-05 05:21:07 +0300 |
commit | cfad3b309976213c45f99bef3b8fad072c6bb9ec (patch) | |
tree | e2e92586367c5be0bfaaebe179bd407cadb471ad /ext/bg/js/dictionary.js | |
parent | 03fd9dcdb451ad55b9b2d2b5bd489e6ca3ba648a (diff) |
merged mode: add main dictionary selection
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r-- | ext/bg/js/dictionary.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js index 2b289a23..c20df400 100644 --- a/ext/bg/js/dictionary.js +++ b/ext/bg/js/dictionary.js @@ -144,10 +144,10 @@ function dictTermsGroup(definitions, dictionaries) { return dictTermsSort(results); } -function dictTermsMergeBySequence(definitions) { +function dictTermsMergeBySequence(definitions, mainDictionary) { const definitionsBySequence = {'-1': []}; for (const definition of definitions) { - if (definition.sequence > 0) { + if (mainDictionary === definition.dictionary && definition.sequence > 0) { if (!definitionsBySequence[definition.sequence]) { definitionsBySequence[definition.sequence] = { reasons: definition.reasons, |