10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix bug caused by main fieldset

This commit is contained in:
Mickaël Véril 2020-05-18 18:22:18 +02:00
parent e9b5481136
commit 28d1da9943

View File

@ -136,7 +136,7 @@ draft: false
async function reloadCustomFiles() { async function reloadCustomFiles() {
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 > fieldset > div > input[type="file"')) {
if (kinds.has(el.name)) { if (kinds.has(el.name)) {
for (const f of el.files) { for (const f of el.files) {
const dat = await VertDataFile.loadAsync(f, kinds.get(this.name)) const dat = await VertDataFile.loadAsync(f, kinds.get(this.name))
@ -155,7 +155,7 @@ draft: false
} }
function getAllSelect() { function getAllSelect() {
return $('#form_dat > fieldset > div > select') return $('#form_dat > fieldset > fieldset > div > select')
} }
function getAllSelectAfter(Name, include = false) { function getAllSelectAfter(Name, include = false) {
@ -341,7 +341,7 @@ draft: false
doiCache.clear() doiCache.clear()
processingIndicator.isActive = true processingIndicator.isActive = true
window.filtData = window.dats window.filtData = window.dats
$('#form_dat > fieldset > div > select').each(function () { $('#form_dat > fieldset > fieldset > div > select').each(function () {
const prop = $(this).attr("name") const prop = $(this).attr("name")
const values = $(this).val() const values = $(this).val()
window.filtData = window.filtData.filter((d) => { window.filtData = window.filtData.filter((d) => {