Skip to content
Snippets Groups Projects
Commit 0187e9f4 authored by Lawrence Chung's avatar Lawrence Chung
Browse files

Merge branch 'web' of https://gitlab.cas.mcmaster.ca/schankuc/2XB3 into web

parents f8a6a2f5 96336ddb
No related branches found
No related tags found
No related merge requests found
......@@ -33,11 +33,18 @@ function callUpdateSci(object){
function populateDropdown(childTagID, nodeList, subnode){
var x, y, content="";
for (var i in nodeList[subnode]["taxonName"]){
x = nodeList[subnode]["taxonId"][i];
y = nodeList[subnode]["taxonName"][i];
content += '"<option value="' + x + '">' + y + '</option>';
console.log(nodeList[subnode]);
if(nodeList[subnode] != null){
for (var i in nodeList[subnode]["taxonName"]){
x = nodeList[subnode]["taxonId"][i];
y = nodeList[subnode]["taxonName"][i];
content += '"<option value="' + x + '">' + y + '</option>';
}
}
// else {
// content
// }
document.getElementById(childTagID).innerHTML = content;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment