Removing HTML option

This commit is contained in:
Alex Yatskov 2016-06-13 21:50:47 -07:00
parent 19c9a16e46
commit 96dd2d45f9
3 changed files with 0 additions and 11 deletions

View File

@ -48,7 +48,6 @@ function formToOptions(section, callback) {
break;
case 'anki':
optsNew.ankiCardTags = $('#anki-card-tags').val().split(/[,; ]+/);
optsNew.ankiHtmlCards = $('#anki-html-cards').prop('checked');
optsNew.ankiVocabDeck = $('#anki-vocab-deck').val();
optsNew.ankiVocabModel = $('#anki-vocab-model').val();
optsNew.ankiVocabFields = fieldsToDict($('#vocab .anki-field-value'));
@ -173,7 +172,6 @@ $(document).ready(() => {
$('#enable-anki-connect').prop('checked', opts.enableAnkiConnect);
$('#anki-card-tags').val(opts.ankiCardTags.join(' '));
$('#anki-html-cards').prop('checked', opts.ankiHtmlCards);
$('.options-general input').change(onOptionsGeneralChanged);
$('.options-anki input').change(onOptionsAnkiChanged);

View File

@ -25,7 +25,6 @@ function sanitizeOptions(options) {
loadEnamDict: false,
enableAnkiConnect: false,
ankiCardTags: ['yomichan'],
ankiHtmlCards: true,
ankiVocabDeck: '',
ankiVocabModel: '',
ankiVocabFields: {},

View File

@ -88,14 +88,6 @@
<div class="col-sm-10"><input type="text" id="anki-card-tags" class="form-control"></div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label class="control-label"><input type="checkbox" id="anki-html-cards"> Render cards using <a href="https://en.wikipedia.org/wiki/HTML">HTML</a></label>
</div>
</div>
</div>
<ul class="nav nav-tabs col-sm-offset-2 col-sm-10">
<li class="active"><a href="#vocab" data-toggle="tab">Vocabulary</a></li>
<li><a href="#kanji" data-toggle="tab">Kanji</a></li>