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

Cleaning references on datatype change

This commit is contained in:
Mickaël Véril 2019-10-10 09:49:39 +02:00
parent d76d9217da
commit 017188a260

View File

@ -62,7 +62,6 @@ draft: false
var dat = await AbsDataFile.loadAsync(file)
window.dats.push(dat)
break;
case "fluo":
dat = await FluoDataFile.loadAsync(file)
window.dats.push(dat)
@ -73,8 +72,10 @@ draft: false
break;
}
}
$('#form_dat > fieldset > div > select').each(function () {
$('#form_dat > fieldset > div > select,#sel_ref').each(function () {
$(this).find('option[value!=""]').remove()
})
$('#form_dat > fieldset > div > select').each(function () {
const vals = uniq(window.dats.map((d) => { return d[$(this).attr("name")] }))
for (const val of vals) {
$("<option/>", {