28bb2659b7500bceab10a942b68bbbea26f56d2a hiram Tue Feb 22 13:15:40 2022 -0800 extend the all argument to also turn on all rows refs #28930 diff --git src/hg/js/gar.js src/hg/js/gar.js index 18f36a6..104fb1d 100644 --- src/hg/js/gar.js +++ src/hg/js/gar.js @@ -82,30 +82,35 @@ gar.measureTiming = gar.urlParams.has('measureTiming'); // If there are any URL arguments to the page see if any of them // are column names var hasAll = gar.urlParams.has('all'); if (hasAll) { var columnList = document.getElementsByClassName('columnCheckBox'); for ( i = 0; i < columnList.length; i++) { var id = columnList[i].value + "CheckBox"; var checkBox = document.getElementById(id); if (checkBox) { checkBox.checked = true; var n = gar.columnNames.get(columnList[i].value); gar.setColumnNvis(n, true); } } + // and unhide all rows, class gca and gcf covers all rows + var thisList = document.getElementsByClassName('gca'); + gar.resetListVis(thisList, true); + thisList = document.getElementsByClassName('gcf'); + gar.resetListVis(thisList, true); } else { gar.urlParams.forEach(function(val, arg) { // beware, get('comName') returns zero, fails this if() statement if (gar.columnNames.has(arg)) { var checkBoxId = arg + "CheckBox"; var checkBox = document.getElementById(checkBoxId); if (checkBox) { checkBox.checked = true; var n = gar.columnNames.get(arg); gar.setColumnNvis(n, true); } /* could look at val here when present to turn on/off if (val) { alert(checkBoxId + " yes val col: '" + arg + "' val: '" + val + "' n: '" + n + "'"); } else {