235301fd42a93e1ba15678074735ca2ce7ffe3d6
Merge parents caa4f9e ffae904
tdreszer
  Fri Dec 2 11:08:58 2011 -0800
Merge branch 'master' into tdreszer-subCfg
diff --cc src/hg/lib/jsHelper.c
index 5d79fce,a8954e6..8860f5b
--- src/hg/lib/jsHelper.c
+++ src/hg/lib/jsHelper.c
@@@ -12,36 -12,33 +12,35 @@@
   * control. */
  
  #include "common.h"
  #include <regex.h>
  #include "dystring.h"
  #include "cheapcgi.h"
  #include "cart.h"
  #include "hPrint.h"
  #include "hash.h"
  #include "jsHelper.h"
  #include "web.h"
  #include "hui.h"
  #include "hgConfig.h"
  #include "portable.h"
  
- static char const rcsid[] = "$Id: jsHelper.c,v 1.31 2009/09/10 04:19:26 larrym Exp $";
  
  static boolean jsInited = FALSE;
  
 +struct jsonHashElement *jsonGlobalsHash = NULL;
 +
  void jsInit()
  /* If this is the first call, set window.onload to the operations
   * performed upon loading a page and print supporting javascript.
   * Currently this just sets the page vertical position if specified on
   * CGI, and also calls jsWriteFunctions.
   * Subsequent calls do nothing, so this can be called many times. */
  {
  if (! jsInited)
      {
      puts(
  
  "<INPUT TYPE=HIDDEN NAME=\"jsh_pageVertPos\" VALUE=0>\n"
  "<script language=\"javascript\">\n"
  "// f_scrollTop and f_filterResults taken from\n"
  "// http://www.softcomplex.com/docs/get_window_size_and_scrollbar_position.html\n"