64e75ce877fc48990da4fbe5950a2e9581874bcc kate Fri May 25 12:14:52 2012 -0700 Clean up navigation between pages diff --git src/hg/js/encodeDataMatrix.js src/hg/js/encodeDataMatrix.js index 5129795..0f66c81 100644 --- src/hg/js/encodeDataMatrix.js +++ src/hg/js/encodeDataMatrix.js @@ -113,31 +113,31 @@ ' <span title="Click to view ChIP-seq experiment matrix by antibody target" id="chipButton">view matrix</span>': '') + '</div></th>'); if (!encodeProject.isIE8()) { // Suppress mouseOver under IE8 as QA noted flashing effect $th.attr('title', dataType.description); } $tableHeaders.append($th); // add colgroup element to support cross-hair hover effect $thead.before('<colgroup class="experimentCol"></colgroup>'); maxLen = Math.max(maxLen, dataType.label.length); }); }); // add click handler to navigate to Chip-seq matrix $('#chipButton').click(function() { - window.open(encodeMatrix.pageForChipMatrix(encodeMatrix_organism), 'matrixWindow'); + window.open(encodeMatrix.pageFor('chipMatrix', encodeMatrix_organism), 'matrixWindow'); }); // adjust size of headers based on longest label length // empirically len/2 em's is right $('#columnHeaders th').css('height', (String((maxLen/2 + 2)).concat('em'))); $('#columnHeaders th').css('width', '1em'); //also need to set additional width for non-IE if (!$.browser.msie) { $('.verticalText').css('width', '1em'); } } function rowAddCells($row, dataGroups, matrix, cellType) { // populate a row in the matrix with cells for data groups and data types