Skip to content
Snippets Groups Projects
Commit f221c7ce authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Mod dis status for donor thumbnails

parent 9b6a9239
Branches
Tags
2 merge requests!92Develop,!91Donor.thumbnails
Pipeline #8198 passed with stages
......@@ -857,14 +857,19 @@
var row_ag = newRow.insertCell(4)
var row_et = newRow.insertCell(5)
var thm_pr = document.createElement("img")
thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Pr/" + repo[i]["Disease Status"] + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Pr.jpg"
if (repo[i]["Disease Status"] == "Donor") {
var dis_status = "D"
} else {
var dis_status = repo[i]["Disease Status"]
}
thm_pr.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Pr/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Pr.jpg"
thm_pr.height = "75"
row_he_pr.appendChild(thm_pr)
thm_pr.onerror=function(){
this.remove()
}
var thm_bl = document.createElement("img")
thm_bl.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Bl/" + repo[i]["Disease Status"] + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Bl.jpg"
thm_bl.src = "https://s3.us-east-2.amazonaws.com/biorepo.images.thumbnails/Bl/" + dis_status + ("000"+repo[i]["Study ID"]).slice(-3) + ".00.Bl.jpg"
thm_bl.height = "75"
row_he_bl.appendChild(thm_bl)
thm_bl.onerror=function(){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment