10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 09:56:08 +02:00

Fix multipledataset Go to file

This commit is contained in:
Mickaël Véril 2019-10-30 12:59:09 +01:00
parent f9d6ca2de9
commit 06b39d073d

View File

@ -222,10 +222,11 @@ draft: false
else if (d instanceof twoStateDataFileBase) {
tableels.splice(3, 0, [d.GS, d.ES])
}
for (const el of tableels) {
td = $("<td/>", {
tdtemp=$("<td/>", {
style: "white-space: nowrap;"
})
for (const el of tableels) {
td=$(tdtemp).clone()
if (trueTypeOf(el) == "doi") {
var publi = await window.Cite.async(el.string)
$("<a/>", {
@ -241,11 +242,10 @@ draft: false
}
$(row).append(td)
}
$("<a/>", {
$(tdtemp).clone().append($("<a/>", {
target: "_blank",
innerText: "Go to file",
href: await d.sourceFile.getViewerURL()
}).appendTo($("<td/>")).appendTo(row)
}).text("Go to file")).appendTo(row)
$(dtb).append(row)
}
processingIndicator.isActive = true