373fab2020528e4b488dffce555dc7cba02cc5a3 kate Sat Oct 29 20:38:01 2011 -0700 1. Add panel of radiobuttons to select track or file search 2. Extensive cleanup diff --git src/hg/js/encodeChipMatrix.js src/hg/js/encodeChipMatrix.js index 01900a3..396198e 100644 --- src/hg/js/encodeChipMatrix.js +++ src/hg/js/encodeChipMatrix.js @@ -54,33 +54,34 @@ $.each(antibodyGroups, function (i, group) { // skip group header row.append('<td></td>'); $.each(group.targets, function (i, target) { // TODO: change this class to matrixElementType //$(".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'; + td = $('<td></td>'); + td.addClass('matrixCell'); if (matrix[cellType][target]) { - td += ' experiment'; + td.addClass('experiment'); } td += '">'; if (matrix[cellType][target]) { 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>'; } @@ -126,31 +127,31 @@ var experiments = responses[0], cellTypes = responses[1], antibodies = responses[2], antibodyGroups, antibodyHash = {}, targetHash = {}, cellTypeHash = {}, antibody, target, cellTiers, cellType, matrix = {}, organism, assembly, header; // variables passed in hidden fields organism = encodeChipMatrix_organism; assembly = encodeChipMatrix_assembly; header = encodeChipMatrix_pageHeader; $("#pageHeader").text(header); - $("title").text('ENCODE ' + header); + document.title = 'ENCODE ' + header; // set up structures for antibodies and their groups $.each(antibodies, function (i, item) { antibodyHash[item.term] = item; }); antibodyGroups = encodeProject.getAntibodyGroups(antibodies); // set up structures for cell types and their tiers $.each(cellTypes, function (i, item) { cellTypeHash[item.term] = item; }); cellTiers = encodeProject.getCellTiers(cellTypes); // gather experiments into matrix $.each(experiments, function (i, exp) {