From: miles Date: Tue, 9 Apr 2013 22:33:12 +0000 (+0000) Subject: View Ontology Changes X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=5cdd5c6c0c209f4a19a348e983b063f619115714;p=old-jaiswallab-svn%2F.git View Ontology Changes - download tab delimited file button now only includes currently visible terms svn path=/; revision=464 --- diff --git a/Personnel/miles/Web Page/infoChoice.php b/Personnel/miles/Web Page/infoChoice.php index a9a3abf..c36f65c 100644 --- a/Personnel/miles/Web Page/infoChoice.php +++ b/Personnel/miles/Web Page/infoChoice.php @@ -6,10 +6,10 @@ if($_POST["type"] == "cluster") { echo "
\n"; echo "

Possible Ontologies:
"; - echo ""; - echo "Anatomy
"; - echo ""; - echo "Growth
"; + echo ""; + echo "Anatomy
\n"; + echo ""; + echo "Growth
\n"; echo "\n"; echo "\n"; echo "\n"; @@ -156,9 +156,9 @@ mysql_close($connection); echo "\n"; echo "

Possible Ontologies:
"; - echo ""; - echo "Plant Ontology: Anatomy
"; - echo ""; + echo ""; + echo "Plant Ontology: Anatomy
\n"; + echo ""; echo "Plant Ontology: Growth
"; echo "\n"; echo "\n"; diff --git a/Personnel/miles/Web Page/viewOntology.php b/Personnel/miles/Web Page/viewOntology.php index 3ca0b4f..39d2b91 100644 --- a/Personnel/miles/Web Page/viewOntology.php +++ b/Personnel/miles/Web Page/viewOntology.php @@ -537,7 +537,7 @@ function getGeneInfo(gene) { function downloadTabDem() { var size = 0; for(var i = 0; i < checkBoxes.length; i ++) { - if(checkBoxes[i]) size++; + if(checkBoxes[i] && isIn(terms[i][1],legalOntologies)) size++; } if(size == 0) { return; @@ -548,7 +548,7 @@ function downloadTabDem() { toSend[g] = new Array(size); var j = 0; for(var t = 0; t < cellData[g].length; t ++) { - if(checkBoxes[t]) { + if(checkBoxes[t] && isIn(terms[t][1],legalOntologies)) { toSend[g][j] = cellData[g][t].join(","); j++; } @@ -561,7 +561,7 @@ function downloadTabDem() { var sendTerms = new Array(size); j = 0; for(var i = 0; i < terms.length; i ++) { - if(checkBoxes[i]) { + if(checkBoxes[i] && isIn(terms[i][1],legalOntologies)) { sendTerms[j]=terms[i][0]; j++; }