diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-11-05 18:10:49 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-11-05 18:10:49 -0700 |
commit | 92fbc14e0bea1ca04dd78f0ac788c528918cb133 (patch) | |
tree | f0b02fd3d8b66388266ba5f5e1f84701552b7bb0 | |
parent | d3a01738740c9a38011e5b98b3f37709bea515e1 (diff) |
WIP
-rw-r--r-- | ext/bg/js/dictionary.js | 9 | ||||
-rw-r--r-- | ext/bg/options.html | 7 |
2 files changed, 11 insertions, 5 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js index 936f3dd8..37a799a6 100644 --- a/ext/bg/js/dictionary.js +++ b/ext/bg/js/dictionary.js @@ -20,7 +20,7 @@ class Dictionary { constructor() { this.db = null; - this.dbVer = 4; + this.dbVer = 5; this.entities = null; } @@ -34,8 +34,7 @@ class Dictionary { terms: '++id, dictionary, expression, reading', kanji: '++, dictionary, character', entities: '++, dictionary', - termDicts: '++, dictionary', - kanjiDicts: '++, dictionary, version', + dictionaries: '++, dictionary, version', meta: 'name, value', }); } @@ -138,7 +137,7 @@ class Dictionary { } const indexLoaded = (dictionary, version, entities) => { - return this.db.termDicts.add({dictionary, version}).then(() => { + return this.db.dictionaries.add({dictionary, version}).then(() => { this.entities = entities || {}; const rows = []; @@ -182,7 +181,7 @@ class Dictionary { } const indexLoaded = (dictionary, version) => { - return this.db.kanjiDicts.add({dictionary, version}); + return this.db.dictionaries.add({dictionary, version}); }; const entriesLoaded = (dictionary, version, entries, total, current) => { diff --git a/ext/bg/options.html b/ext/bg/options.html index 42029727..458174bb 100644 --- a/ext/bg/options.html +++ b/ext/bg/options.html @@ -63,6 +63,13 @@ </div> <div> + <h3>Dictionaries</h3> + + <div name="dictionaries"> + </div> + </div> + + <div> <div> <img src="img/spinner.gif" class="pull-right" id="anki-spinner" alt> <h3>Anki Options</h3> |