fa03f449619fabb9edb72bdfb90a7d727737ca94
angie
  Mon Jun 23 10:38:34 2014 -0700
In setTableRowVisibility, when changing a row from hide to show,trigger a 'show' event so other JS code can listen and make updates
if needed (e.g. hgVai.c).

diff --git src/hg/js/utils.js src/hg/js/utils.js
index 65ccb53..56c9e68 100644
--- src/hg/js/utils.js
+++ src/hg/js/utils.js
@@ -517,36 +517,37 @@
             // new BUTTONS_BY_CSS
             if (newVal === -1) {
                 oldSrc = $(button).text();
                 if (oldSrc && oldSrc.length === 1)
                     newVal = (oldSrc === '+') ? 0 : 1;
                 else {
                     warn("Uninterpretable toggleButton!");
                     newVal = 0;
                 }
             }
             if (newVal === 1)
                 $(button).text('+');
             else
                 $(button).text('-');
         }
+        var contents = $("tr[id^='"+prefix+"-']");
         if(newVal === 1) {
             $(button).attr('title', 'Expand this '+titleDesc);
-            $("tr[id^='"+prefix+"-']").hide();
+            contents.hide();
         } else {
             $(button).attr('title', 'Collapse this '+titleDesc);
-            $("tr[id^='"+prefix+"-']").show();
+            contents.show().trigger('show');
         }
         $(hidden).val(newVal);
 	if (doAjax) {
 	    setCartVar(hiddenPrefix+"_"+prefix+"_close", newVal);
 	}
         retval = false;
     }
     return retval;
 }
 
 function warnBoxJsSetup()
 {   // Sets up warnBox if not already established.  This is duplicated from htmshell.c
     var html = "";
     html += "<center>";
     html += "<div id='warnBox' style='display:none;'>";