This commit is contained in:
Alex Yatskov 2017-03-04 20:10:49 -08:00
parent e799aa5e5f
commit 5daf2accf4
3 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ function onDictionaryPurge(e) {
return optionsLoad(); return optionsLoad();
}).then(options => { }).then(options => {
options.dictionaries = {}; options.dictionaries = {};
return optionsSave(options).then(populateDictionaries); return optionsSave(options).then(() => populateDictionaries(options));
}); });
} }

View File

@ -127,7 +127,7 @@
<div> <div>
<div> <div>
<img src="img/spinner.gif" class="pull-right" id="anki-spinner" alt> <img src="/mixed/img/spinner.gif" class="pull-right" id="anki-spinner" alt>
<h3>Anki Options</h3> <h3>Anki Options</h3>
</div> </div>
@ -237,7 +237,6 @@
<script src="/mixed/lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> <script src="/mixed/lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="/mixed/lib/handlebars.min.js"></script> <script src="/mixed/lib/handlebars.min.js"></script>
<script src="/bg/js/templates.js"></script> <script src="/bg/js/templates.js"></script>
<script src="/bg/js/gecko.js"></script>
<script src="/bg/js/util.js"></script> <script src="/bg/js/util.js"></script>
<script src="/bg/js/options.js"></script> <script src="/bg/js/options.js"></script>
</body> </body>

View File

@ -50,6 +50,7 @@ class Display {
const sequence = ++this.sequence; const sequence = ++this.sequence;
const params = { const params = {
definitions, definitions,
addable: options.anki.enable,
grouped: options.general.groupResults, grouped: options.general.groupResults,
playback: options.general.audioPlayback playback: options.general.audioPlayback
}; };
@ -84,7 +85,7 @@ class Display {
const sequence = ++this.sequence; const sequence = ++this.sequence;
const params = { const params = {
definitions, definitions,
addable: options.anki.enabled addable: options.anki.enable
}; };
if (context) { if (context) {
@ -137,7 +138,7 @@ class Display {
onActionAddNote(e) { onActionAddNote(e) {
e.preventDefault(); e.preventDefault();
this.showSpinner(true); this.spinner.show();
const link = $(e.currentTarget); const link = $(e.currentTarget);
const index = link.data('index'); const index = link.data('index');