Skip to content

Commit

Permalink
Updated hierarchy.jsp.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimong committed Jun 8, 2021
1 parent 74698d4 commit 9d5c745
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions software/ncitbrowser/web/pages/hierarchy.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,22 @@ div {text-align: left;}
var ontology_node_ns = document.forms["pg_form"].ontology_node_ns.value;
if (ontology_node_id == null || ontology_node_id == "null")
{
document.getElementById("tree").innerHTML = "Loading hierarchy. Please wait...";
var content = "<center><br></br><img src='/ncitbrowser/images/loading.gif' alt='Loading'/>" +
"<p>Loading hierarchy. Please wait...</p><center>";
document.getElementById("tree").innerHTML = content;
init(ontology_node_id, ontology_display_name);
document.getElementById("tree").innerHTML = "";
}
else
{
document.getElementById("tree").innerHTML = "Searching concept in hierarchy. Please wait...";
var content = "<center><br></br><img src='/ncitbrowser/images/loading.gif' alt='Loading'/>" +
"<p>Searching concept in hierarchy. Please wait...</p><center>";
document.getElementById("tree").innerHTML = content;
search(ontology_node_id, ontology_node_ns, ontology_display_name);
document.getElementById("tree").innerHTML = "";
}
}
function init(ontology_node_id, ontology_display_name) {
var ajax = new XMLHttpRequest();
Expand Down

0 comments on commit 9d5c745

Please sign in to comment.