8a77b9b7b714643fd67a7883aeefea881a88b8e8 kate Fri Mar 23 12:40:09 2012 -0700 Fix again so both serarch button persistence and floating header operate correctly. Setting radio button on fadeIn handles it (custom fadeOut didn't hide the floater properly). diff --git src/hg/js/encodeMatrix.js src/hg/js/encodeMatrix.js index 6b6c203..0b6f202 100644 --- src/hg/js/encodeMatrix.js +++ src/hg/js/encodeMatrix.js @@ -107,33 +107,31 @@ // (not able to make it work in simple HTML either). $table.floatHeader({ cbFadeIn: function (header) { // hide axis labels -- a bit tricky to do so // as special handling needed for X axis label $('.floatHeader #headerLabelRow').remove(); $('.floatHeader #cellHeaderLabel').html(''); $('.floatHeader #searchTypePanel').remove(); // Note: user-defined callback requires // default actions from floatHeader plugin // implementation (stop+fadeIn) header.stop(true, true); header.fadeIn(100); - }, - cbFadeOut: function (header) { - // restore checked radio button that is the fadeIn cleared (on Chrome) + if (encodeMatrix.isFileSearch()) { $('#searchFiles').attr('checked', true); } else { $('#searchTracks').attr('checked', true); } } }); }, hoverTableCrossHair: function ($table) { // Add Cross-hair effect (column and row hover) to table // thanks to Chris Coyier, css-tricks.com // NOTE: acts on colgroups declared at start of table // NOTE: uses many hard-coded CSS classes, and adds 'crossHair' class (relies on styling)