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/encodeDataMatrix.js src/hg/js/encodeDataMatrix.js index 855dee7..5ed729f 100644 --- src/hg/js/encodeDataMatrix.js +++ src/hg/js/encodeDataMatrix.js @@ -57,33 +57,33 @@ $.each(group.dataTypes, function (i, dataTypeLabel) { // TODO: change this class to matrixElementType //$(".cellType").click(matrixClickHandler); //"searchWindow"); dataType = dataTypeLabelHash[dataTypeLabel].term; // prune out datatypes with no experiments if (dataTypeLabelHash[dataTypeLabel].count === undefined) { return true; } td = '<td class="cellType'; if (matrix[cellType][dataType]) { td += ' experiment'; } td += '">'; if (matrix[cellType][dataType]) { - td += '<a target=_blank title="'; + td += '<a target="searchWindow" title="'; td += dataTypeLabel + ' in ' + cellType + ' cells "'; - td += 'href="http://genome-preview.ucsc.edu/cgi-bin/hgTracks?db=hg19&tsCurTab=advancedTab&hgt_tsPage=&hgt_tSearch=search&hgt_mdbVar1=cell&hgt_mdbVar2=dataType&hgt_mdbVal1='; + td += 'href="http://genome-preview.ucsc.edu/cgi-bin/hgTracks?db=hg19&tsCurTab=advancedTab&hgt_tsPage=&hgt_tSearch=search&hgt_mdbVar1=cell&hgt_mdbVar2=dataType&hgt_mdbVar3=view&hgt_mdbVal3=Any&hgt_mdbVal1='; td += cellType; td += '&hgt_mdbVal2='; td += dataType; //td += '"><font color=#00994D>'; td += '"><font>'; td += matrix[cellType][dataType]; //td += "....."; td += '</font></a>'; td += '</td>'; } row.append(td); }); table.append(row); }); table.append(row);