Skip to content

Commit

Permalink
added link in results to set variant
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Feb 17, 2009
1 parent a76983b commit 07b9a46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions genetify/controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
#genetify_results_table td.genetify_col_weight {
background-color: rgb(240,240,240);
}
#genetify_results_table .genetify_col_name {
cursor: pointer;
}

#genetify_results_table .genetify_col_stddev,
#genetify_results_table .genetify_col_share {
Expand Down
7 changes: 7 additions & 0 deletions genetify/genetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ genetifyTime.begin.load = new Date().getTime();

//TODO: is this too intrusive?
if (!window.console || !(window.console.firebug || window.console.provider)){

console = {
warn : function(){},
error : function(){},
Expand Down Expand Up @@ -1522,9 +1523,15 @@ genetify.controls = {
extra += ' title="The ' + rows[0][j] + ' of variant ' + cols[0] + ' is ' + cols[j] + '"';

if (cols.length === 1){
var lastGene = cols[j];
extra = ' colspan="' + rows[i+1].length + '"';
extra += ' class="genetify_gene_row"';
}
else if (j === 0){
extra += ' onclick="location=\'#' + encodeURIComponent(lastGene) + '=' + cols[j] + '\'; location.reload()"';
//TODO:
// cols[j] = '<a href="#' + encodeURIComponent(lastGene) + '=' + cols[j] + '">' + cols[j] + '</a>';
}

var colTag = '';
if (i === 0){
Expand Down

0 comments on commit 07b9a46

Please sign in to comment.