0fa05b3e9ee790c70332b1fdf90724c1f7ff8d30 hiram Thu Mar 24 12:37:28 2022 -0700 adding gar.js to the build refs #28930 diff --git src/hg/js/gar.js src/hg/js/gar.js index 6aafaa6..33910c9 100644 --- src/hg/js/gar.js +++ src/hg/js/gar.js @@ -45,31 +45,31 @@ tableLegend: function(e) { alert(e.innerText); }, // Given a table cell c, set it to visible/hidden based on 'tf' // where tf is 'true' == turn on, or 'false' == turn off setCellVis: function(c,tf) { if (tf) { c.style.display = "table-cell"; } else { c.style.display = "none"; } }, // given a 'false' or 'true' then 'hide' or 'show' all rows in the table - hideShowAllRows(hideShow) { + hideShowAllRows: function(hideShow) { var thisList = document.getElementsByClassName('gca'); gar.resetListVis(thisList, hideShow); thisList = document.getElementsByClassName('gcf'); gar.resetListVis(thisList, hideShow); }, // find out the names of the columns, and get all the checkBox // hideShow button names so they can be managed later discoverColumnsCheckboxes: function() { var colGroup = document.getElementById('colDefinitions'); var i = 0; for (i = 0; i < colGroup.children.length; i++) { gar.columnNames.set(colGroup.children[i].id, i); } var hideShowList = document.getElementsByClassName('hideShow');