782c81418b4a7b3194393adf3efde7b868b61589 angie Wed Mar 1 11:54:05 2017 -0800 Replacing some more hardcoded ../js/ paths with calls to jsIncludeFile. diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index e80ae35..3581d50 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -238,48 +238,48 @@ noScriptMsg = "JavaScript is disabled in your web browser
You must have JavaScript enabled in your web browser to use the Genome Browser"; defaultWarningShown = TRUE; } if(noScriptMsg && strlen(noScriptMsg)) hPrintf("\n", noScriptMsg); hPrintf("%s",link); freeMem(link); } } void jsIncludeReactLibs() /* Prints out "); -puts(""); -puts(""); +jsIncludeFile("es5-shim.4.0.3.min.js", NULL); +jsIncludeFile("es5-sham.4.0.3.min.js", NULL); +jsIncludeFile("lodash.3.10.0.compat.min.js", NULL); puts(""); puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); -puts(""); +jsIncludeFile("react-with-addons-0.12.2.min.js", NULL); +jsIncludeFile("immutable.3.7.4.min.js", NULL); +jsIncludeFile("jquery.bifrost.1.0.1.min.js", NULL); +jsIncludeFile("BackboneExtend.js", NULL); +jsIncludeFile("cart.js", NULL); +jsIncludeFile("ImModel.js", NULL); +jsIncludeFile("CladeOrgDbMixin.js", NULL); +jsIncludeFile("PositionSearchMixin.js", NULL); +jsIncludeFile("UserRegionsMixin.js", NULL); +jsIncludeFile("PathUpdate.js", NULL); +jsIncludeFile("PathUpdateOptional.js", NULL); +jsIncludeFile("ImmutableUpdate.js", NULL); +jsIncludeFile("reactLibBundle.js", NULL); } void jsIncludeDataTablesLibs() /* Prints out "); puts(""); } char *jsDataTableStateSave (char *cartPrefix)