spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit e4051e5a0a8a344d8a52f8f3fa70c8336d2ddc09
parent c381f6b72b7674d66a3c761a902f8dc5b7c43090
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Thu,  7 May 2020 10:38:28 -0700

Remove redundant code for adding filter options.

Diffstat:
MScripts/Settings.js | 3+++
Mindex.html | 11+----------
2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/Scripts/Settings.js b/Scripts/Settings.js @@ -202,6 +202,9 @@ function AddSet() { // Add row document.getElementById("settingsSetsInner").appendChild(clone); + // Add filters + settingsSetChanged(document.getElementById(`settingsSetName-${setId}`)); + // Increment setId setId++; // increment fileId to get a unique ID for the new element } diff --git a/index.html b/index.html @@ -54,16 +54,7 @@ </optgroup> </select> <select id="settingsSetFilter" class="settingsSetFilter"> - <option>All Definitions</option> - <option>All Conjugations</option> - <option>Reverse Conjugations</option> - <option>Present Participles</option> - <option>Present Tense</option> - <option>Preterite Tense</option> - <option>Imperfect Tense</option> - <option>Present non-Regular</option> - <option>Preterite non-Regular</option> - <option>Imperfect non-Regular</option> + <!-- Generated by settingsSetChanged() --> </select> <a id="settingsSetRemove" class="settingsSetRemove">╳</a> </div>