10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02:00

reloadCustomFiles is now a separate function

This commit is contained in:
Mickaël Véril 2020-01-27 11:13:49 +01:00
parent 976a56adac
commit c193e23359

View File

@ -87,8 +87,7 @@ draft: false
processingIndicator.isActive = false
await reloadSelect()
}
async function reloadSelect() {
async function reloadCustomFiles() {
window.dats = window.defaultDats;
const kinds=new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]])
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 () {
$(this).empty()
})