mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 13:53:48 +01:00
Fix duplicated options in ref
This commit is contained in:
parent
b45bd6f961
commit
3b88d7c626
@ -222,15 +222,15 @@ draft: false
|
|||||||
dtb.empty()
|
dtb.empty()
|
||||||
sel_ref = $("#sel_ref")
|
sel_ref = $("#sel_ref")
|
||||||
await doiCache.addRange(window.filt.map((x)=>x.DOI.string))
|
await doiCache.addRange(window.filt.map((x)=>x.DOI.string))
|
||||||
|
for (const el of uniq(window.filt.map(d=>[d.code,d.method,d.DOI]))){
|
||||||
|
$("<option/>", {
|
||||||
|
value: JSON.stringify(el)
|
||||||
|
}).text(el[1]).appendTo(sel_ref)
|
||||||
|
}
|
||||||
for (const d of window.filt) {
|
for (const d of window.filt) {
|
||||||
var row = $("<tr/>")
|
var row = $("<tr/>")
|
||||||
var rowd = []
|
var rowd = []
|
||||||
const els = [d.molecule, d.comment, d.code, d.method, d.DOI]
|
const els = [d.molecule, d.comment, d.code, d.method, d.DOI]
|
||||||
var op = document.createElement("option")
|
|
||||||
var opObjVal = els.slice(2)
|
|
||||||
$("<option/>", {
|
|
||||||
value: JSON.stringify(opObjVal)
|
|
||||||
}).text(d.method).appendTo(sel_ref)
|
|
||||||
var tableels = els.slice()
|
var tableels = els.slice()
|
||||||
if (d instanceof oneStateDataFileBase) {
|
if (d instanceof oneStateDataFileBase) {
|
||||||
tableels.splice(3, 0, d.geometry)
|
tableels.splice(3, 0, d.geometry)
|
||||||
|
Loading…
Reference in New Issue
Block a user