e5fc94f6091435242cfa794857c78da5140202f3 chmalee Thu Aug 29 15:43:29 2024 -0700 Add jquery-migrate for new jquery version diff --git src/hg/lib/web.c src/hg/lib/web.c index 474ad25..62b7425 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -1492,31 +1492,31 @@ char *menuStr, buf[4096], uiVars[128]; FILE *fd; char *navBarFile = "inc/globalNavBar.inc"; struct stat statBuf; char *scriptName = cgiScriptName(); if (cart) safef(uiVars, sizeof(uiVars), "%s=%s", cartSessionVarName(), cartSessionId(cart)); else uiVars[0] = 0; if(docRoot == NULL) // tolerate missing docRoot (i.e. don't bother with menu when running from command line) return NULL; jsIncludeFile("jquery.js", NULL); -jsIncludeFile("jquery-migrate-1.4.1.js", NULL); +jsIncludeFile("jquery-migrate-3.5.2.js", NULL); jsIncludeFile("jquery.plugins.js", NULL); jsIncludeFile("utils.js", NULL); webIncludeResourceFile("nice_menu.css"); webIncludeLocalJs(); // Read in menu bar html safef(buf, sizeof(buf), "%s/%s", docRoot, navBarFile); fd = mustOpen(buf, "r"); fstat(fileno(fd), &statBuf); int len = statBuf.st_size; menuStr = needMem(len + 1); mustRead(fd, menuStr, statBuf.st_size); menuStr[len] = 0; carefulClose(&fd);