358c7f3665dca67c180f6b22ae11f6bf33d201ae angie Tue Jan 11 10:45:13 2011 -0800 Moved hgc.c's {begin,end}CollapsibleSection to jsHelper.c:js{Begin,End}CollapsibleSection so I can use in hgTrackUi. diff --git src/hg/inc/jsHelper.h src/hg/inc/jsHelper.h index d516886..108b342 100644 --- src/hg/inc/jsHelper.h +++ src/hg/inc/jsHelper.h @@ -118,16 +118,24 @@ * id parameter may be NULL */ char *jsStripJavascript(char *str); /* Strip out anything that looks like javascript in html string. This function is designed to cleanup user input (e.g. to avoid XSS attacks). Returned string should be free'ed after use. */ char *stripRegEx(char *str, char *regEx, int flags); /* Strip out text matching regEx from str. flags is passed through to regcomp as the cflags argument. Returned string should be free'ed after use. */ boolean advancedJavascriptFeaturesEnabled(struct cart *cart); // Returns TRUE if advanced javascript features are currently enabled +void jsBeginCollapsibleSection(struct cart *cart, char *track, char *section, char *sectionTitle, + boolean isOpenDefault); +/* Make the hidden input, collapse/expand button and