dc41bf03c3da78ab593718661fa4e233135ffd26 kate Thu Oct 13 19:34:37 2011 -0700 From code review: direct all searches to named window instead of creating endless new ones with _blank. Also, bring up search with View=Any menu visible, to hint to user they are getting multiple views diff --git src/hg/js/encodeChipMatrix.js src/hg/js/encodeChipMatrix.js index 4fd0990..479caec 100644 --- src/hg/js/encodeChipMatrix.js +++ src/hg/js/encodeChipMatrix.js @@ -56,31 +56,31 @@ //$(".cellType").click(matrixClickHandler); //"searchWindow"); // prune out targets with no experiments if (targetHash[target] === undefined) { return true; } if (targetHash[target].count === undefined) { return true; } td = '<td class="cellType'; if (matrix[cellType][target]) { td += ' experiment'; } td += '">'; if (matrix[cellType][target]) { - td += '<a target=_blank href="http://genome-preview.ucsc.edu/cgi-bin/hgTracks?db=hg19&tsCurTab=advancedTab&hgt_tsPage=&hgt_tSearch=search&hgt_mdbVar1=cell&hgt_mdbVar2=target&hgt_mdbVal1='; + td += '<a target="searchWindow" href="http://genome-preview.ucsc.edu/cgi-bin/hgTracks?db=hg19&tsCurTab=advancedTab&hgt_tsPage=&hgt_tSearch=search&hgt_mdbVar1=cell&hgt_mdbVar2=target&hgt_mdbVar3=view&hgt_mdbVal2=Any&hgt_mdbVal1='; td += cellType; td += '&hgt_mdbVal2='; // TODO: needs to be join of all antibodies for this target td += target; //td += '"><font color=#00994D>'; td += '"><font>'; td += matrix[cellType][target]; //td += "....."; td += '</font></a>'; td += '</td>'; } row.append(td); }); table.append(row); });