mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Cleaning references on datatype change
This commit is contained in:
parent
d76d9217da
commit
017188a260
@ -62,7 +62,6 @@ draft: false
|
|||||||
var dat = await AbsDataFile.loadAsync(file)
|
var dat = await AbsDataFile.loadAsync(file)
|
||||||
window.dats.push(dat)
|
window.dats.push(dat)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "fluo":
|
case "fluo":
|
||||||
dat = await FluoDataFile.loadAsync(file)
|
dat = await FluoDataFile.loadAsync(file)
|
||||||
window.dats.push(dat)
|
window.dats.push(dat)
|
||||||
@ -73,8 +72,10 @@ draft: false
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#form_dat > fieldset > div > select').each(function () {
|
$('#form_dat > fieldset > div > select,#sel_ref').each(function () {
|
||||||
$(this).find('option[value!=""]').remove()
|
$(this).find('option[value!=""]').remove()
|
||||||
|
})
|
||||||
|
$('#form_dat > fieldset > div > select').each(function () {
|
||||||
const vals = uniq(window.dats.map((d) => { return d[$(this).attr("name")] }))
|
const vals = uniq(window.dats.map((d) => { return d[$(this).attr("name")] }))
|
||||||
for (const val of vals) {
|
for (const val of vals) {
|
||||||
$("<option/>", {
|
$("<option/>", {
|
||||||
|
Loading…
Reference in New Issue
Block a user