0a80449f4b81955b313a3ec01aa2b42c235c3948
braney
  Sun Aug 16 16:25:44 2015 -0700
implement the suggestion in note-18 of #6551.    Default track visibilities
are now stored in the cart.  The defaults are reloaded from trackDb on a
new cart, when the assembly is changed, or when "default tracks" is
pressed.

diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c
index 0f65be7..8ab754e 100644
--- src/hg/hgTracks/config.c
+++ src/hg/hgTracks/config.c
@@ -504,23 +504,26 @@
 cgiMakeButtonWithMsg(configDefaultAll, "default","Display only default tracks");
 hPrintf("   Groups:  ");
 hButtonWithOnClick("hgt.collapseGroups", "collapse all", "Collapse all track groups",
                    "return vis.expandAllGroups(false)");
 hPrintf(" ");
 hButtonWithOnClick("hgt.expandGroups", "expand all", "Expand all track groups",
                    "return vis.expandAllGroups(true)");
 hPrintf("<div style='margin-top:.2em; margin-bottom:.9em;'>Control track and group visibility "
         "more selectively below.</div>");
 trackConfig(trackList, groupList, groupTarget, vis);
 
 dyStringFree(&title);
 freez(&groupTarget);
 webEndSectionTables();
 hPrintf("</FORM>");
+
+// force the browser to save the default trackDb visibilities in the cart
+cartRemove(cart, CART_HAS_DEFAULT_VISIBILITY);
 }
 
 void configPage()
 /* Put up configuration page. */
 {
 configPageSetTrackVis(-2);
 }