692065227f9b0f987144c4608ffd6c31ce2af35d
kate
  Mon Jul 29 17:45:05 2019 -0700
Add support for styling submit buttons to indicate if they have been pressed (in modal mode).  Do this for reverse and multi-region buttons on hgTracks. refs #23922

diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h
index 622fb6f..c063821 100644
--- src/inc/cheapcgi.h
+++ src/inc/cheapcgi.h
@@ -253,30 +253,36 @@
 char *cgiEncode(char *inString);
 /* Return a cgi-encoded version of inString.
  * Alphanumerics kept as is, space translated to plus,
  * and all other characters translated to %hexVal.
  * You can free return value with freeMem(). */
 
 char *cgiEncodeFull(char *inString);
 /* Return a cgi-encoded version of inString (no + for space!).
  * Alphanumerics/./_ kept as is and all other characters translated to
  * %hexVal. */
 
 void cgiEncodeHash(struct hash *hash, struct dyString *dy);
 /* Put a cgi-encoding of a string valued hash into dy.  Tags are always
  * alphabetical to make it easier to compare if two hashes are same. */
 
+void cgiMakeSubmitButtonMaybePressed(char *name, char *value, char *msg, 
+                char *onClick, boolean pressed);
+/* Make 'submit' type button, with optional messsage and onclick javascript, boolean pressed.
+   Set styling to indicate whether button has been pressed (for buttons that change browser mode).
+ */
+
 void cgiMakeButtonWithMsg(char *name, char *value, char *msg);
 /* Make 'submit' type button. Display msg on mouseover, if present*/
 
 void cgiMakeButtonWithOnClick(char *name, char *value, char *msg, char *onClick);
 /* Make 'submit' type button, with onclick javascript */
 
 void cgiMakeButton(char *name, char *value);
 /* Make 'submit' type button. */
 
 void cgiMakeOnClickButton(char *id, char *command, char *value);
 /* Make 'push' type button with client side onClick (java)script. */
 
 void cgiMakeOnClickSubmitButton(char *command, char *name, char *value);
 /* Make submit button with both variable name and value with client side
  * onClick (java)script. */