mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
reloadCustomFiles is now a separate function
This commit is contained in:
parent
976a56adac
commit
c193e23359
@ -87,8 +87,7 @@ draft: false
|
|||||||
processingIndicator.isActive = false
|
processingIndicator.isActive = false
|
||||||
await reloadSelect()
|
await reloadSelect()
|
||||||
}
|
}
|
||||||
|
async function reloadCustomFiles() {
|
||||||
async function reloadSelect() {
|
|
||||||
window.dats = window.defaultDats;
|
window.dats = window.defaultDats;
|
||||||
const kinds=new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]])
|
const kinds=new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]])
|
||||||
for (const el of $('#form_dat > fieldset > div > input[type="file"')) {
|
for (const el of $('#form_dat > fieldset > div > input[type="file"')) {
|
||||||
@ -99,6 +98,9 @@ draft: false
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
async function reloadSelect() {
|
||||||
|
reloadCustomFiles()
|
||||||
$('#form_dat > fieldset > div > select,#sel_ref').each(function () {
|
$('#form_dat > fieldset > div > select,#sel_ref').each(function () {
|
||||||
$(this).empty()
|
$(this).empty()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user