5df780d2ecfcf6e4292710fa1a5af810066a0a04 tdreszer Wed Nov 2 16:24:50 2011 -0700 Turned on matrix squeezing. diff --git src/hg/js/hui.js src/hg/js/hui.js index cb13571..7c01a30 100644 --- src/hg/js/hui.js +++ src/hg/js/hui.js @@ -1191,77 +1191,79 @@ } else { $(sel).removeClass('hiddenText'); $(sel).addClass('normalText'); superT.topVis(true); } if (val == undefined) { // onchange event only var cb = $('input#'+sel.name); if (cb != undefined && cb.length == 1) { cb = cb[0]; $(cb).attr('checked',(selIx > 0)); } } } } -/* SOON TO BE ENABLED var mat = { // Beginings of matrix object dimensions: 0, cellHover: function (obj,on) { var classList = $( obj ).attr("class").split(" "); - classList = aryRemove(classList,"matCell"); + classList = aryRemove(classList,["matCell"]); for (var ix=0;ix < classList.length;ix++) { + if (classList[ix] == 'all') + continue; var cells = $(".matCell."+classList[ix]); if (on) $(cells).css({backgroundColor:"#FCECC0"}); else $(cells).css({backgroundColor:"#FFF9D2"}); } if (on && obj.title.length == 0) { for (var ix=0;ix < classList.length;ix++) { - if (ix > 0) + if (classList[ix] == 'all') + continue; + if (obj.title.length > 0) obj.title += " and "; obj.title += $("th."+classList[ix]).first().text(); } } }, init: function () { var cells = $('td.matCell'); if (cells != undefined && cells.length > 0) { var classList = $( cells[0] ).attr("class").split(" "); - classList = aryRemove(classList,"matCell"); + classList = aryRemove(classList,["matCell"]); mat.dimensions = classList.length; if (mat.dimensions > 1) { // No need unless this is a 2D matrix - $('td.matCell').hover( + $('.matCell').hover( function (e) {mat.cellHover(this,true)}, function (e) {mat.cellHover(this,false)} ); } } } } -*/ // The following js depends upon the jQuery library $(document).ready(function() { - // SOON TO BE ENABLED: mat.init(); + mat.init(); if (normed($('table.subtracks')) != undefined) { matInitializeMatrix(); // If divs with class 'subCfg' then initialize the subtrack cfg code // NOTE: must be before any ddcl setup if (typeof(subCfg) !== "undefined" && normed($("div.subCfg")) != undefined) { subCfg.initialize(); } } // Initialize sortable tables $('table.sortable').each(function (ix) { sortTableInitialize(this,true,true); });