10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00

clearSelect is now a separate function

This commit is contained in:
Mickaël Véril 2020-01-27 11:16:57 +01:00
parent c193e23359
commit 17fff81183

View File

@ -99,11 +99,14 @@ draft: false
}
}
}
async function reloadSelect() {
reloadCustomFiles()
async function clearSelect() {
$('#form_dat > fieldset > div > select,#sel_ref').each(function () {
$(this).empty()
})
}
async function reloadSelect() {
reloadCustomFiles()
clearSelect()
$('#form_dat > fieldset > div > select').each(async function () {
const vals = uniq(window.dats.map((d) => {
switch ($(this).attr("name")) {