8f2e6dbc0e250e934382477cea73e60624ccfe32 chmalee Fri Feb 16 11:45:42 2024 -0800 Start of populating a list of files to the UI diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index 1f5519c..cb6f023 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -265,33 +265,33 @@ 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 <script src="..."> tags for external libraries: jQuery 1.12.3, the jQuery DataTables * plugin (version 1.10.12), and the accompanying standard CSS file for DataTables. */ { puts("<link rel=\"stylesheet\" type=\"text/css\" " "href=\"https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css\">\n"); puts("<script type=\"text/javascript\" " - "src=\"https://code.jquery.com/jquery-1.12.3.min.js\"\"></script>"); + "src=\"https://code.jquery.com/jquery-1.12.3.min.js\"></script>"); puts("<script type=\"text/javascript\" " - "src=\"https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js\"\"></script>"); + "src=\"https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js\"></script>"); } char *jsDataTableStateSave (char *cartPrefix) /* Prints out a javascript function to save the state of a DataTables jQuery plugin-enabled * table to the cart, using the specified cart prefix to help name the variable. */ { static char saveFunction[4096]; safef(saveFunction, sizeof(saveFunction), "function saveTableState (settings, data) { " "var cartVarName = \"%s\".concat(\"%s\"); " "var stateString = JSON.stringify(data); " "setCartVar(cartVarName, encodeURIComponent(stateString)); " "}" , cartPrefix, dataTableStateName); return saveFunction;