54bb8a90b15d19a7af840e612125d1656111762d chmalee Mon Jul 31 10:16:21 2023 -0700 Make changes to blue bar state persist in the cart, refs #19739 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 9e6c750..cfcf50b 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -946,31 +946,31 @@ // Trusts that the cart update will be submitted later. if (track && vis.get(track) !== "full") { vis.update(track, 'pack'); cart.addVarsToQueue([track], ['pack']); } }, toggleForGroup: function (button, prefix) { // toggle visibility of a track group; prefix is the prefix of all the id's of tr's in the // relevant group. This code also modifies the corresponding hidden fields and the gif // of the +/- img tag. imageV2.markAsDirtyPage(); if (arguments.length > 2) return setTableRowVisibility(button, prefix, "hgtgroup", "group",false,arguments[2]); else - return setTableRowVisibility(button, prefix, "hgtgroup", "group",false); + return setTableRowVisibility(button, prefix, "hgtgroup", "group", true); }, expandAllGroups: function (newState) { // Set visibility of all track groups to newState (true means expanded). // This code also modifies the corresponding hidden fields and the gif's of the +/- img tag. imageV2.markAsDirtyPage(); $(".toggleButton[id$='_button']").each( function (i) { // works for old img type AND new BUTTONS_BY_CSS // - 7: clip '_button' suffix vis.toggleForGroup(this,this.id.substring(0,this.id.length - 7),newState); }); return false; }, initForAjax: function() { // To better support the back-button, it is good to eliminate extraneous form puts