64e75ce877fc48990da4fbe5950a2e9581874bcc kate Fri May 25 12:14:52 2012 -0700 Clean up navigation between pages diff --git src/hg/js/encodeDataSummary.js src/hg/js/encodeDataSummary.js index 2bf4968..e07140c 100644 --- src/hg/js/encodeDataSummary.js +++ src/hg/js/encodeDataSummary.js @@ -85,34 +85,34 @@ if (cellAssayExps[dataType] !== undefined) { delete refGenomeExps[dataType]; } } // fill in tables and activate buttons tableOut('#refGenomeTable', refGenomeTypes, refGenomeExps, false); tableOut('#elementTable', elementTypes, cellAssayExps, false); tableOut('#tfbsTable', tfbsTypes, tfbsExps, true); if (encodeProject.isIE7()) { // disable buttons on IE7 -- not yet able to display matrix column headers adequately $('#buttonDataMatrix').remove(); $('#buttonChipMatrix').remove(); } else { $('#buttonDataMatrix').click(function () { - window.location = encodeMatrix.pageForDataMatrix(encodeMatrix_organism); + window.location = encodeMatrix.pageFor('dataMatrix', encodeMatrix_organism); }); $('#buttonChipMatrix').click(function () { - window.location = encodeMatrix.pageForChipMatrix(encodeMatrix_organism); + window.location = encodeMatrix.pageFor('chipMatrix', encodeMatrix_organism); }); } // add row highlight $('.summaryTable').delegate('.even, .odd', 'mouseover mouseleave', function (ev) { if (ev.type == 'mouseover') { $(this).addClass('rowHighlight'); } else { $(this).removeClass('rowHighlight'); } }); } function tableOut(table, types, exps, isChipSeq) { // Helper function to output tables to document