10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00
This commit is contained in:
Mickaël Véril 2019-09-28 16:41:32 +02:00
parent f1832d1164
commit f8b654de60

View File

@ -40,7 +40,7 @@ draft: false
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){
op=document.createElement("option") op=document.createElement("option")
op.value=val op.value=JSON.stringify(val)
op.innerText=val.toString() op.innerText=val.toString()
$(this).append(op) $(this).append(op)
} }
@ -55,7 +55,7 @@ draft: false
if(typeof values=="undefined" || values==null){ if(typeof values=="undefined" || values==null){
return false return false
} }
return values.map((v)=>JSON.stringify(v)).includes(JSON.stringify(d[prop])) return values.includes(JSON.stringify(d[prop]))
}) })
}) })
var tb=document.getElementById("table_b"); var tb=document.getElementById("table_b");