47ea57080b515e5dad5f658c58feb8944a7e7d61 chmalee Thu Jan 29 15:30:26 2026 -0800 Replace clade/assembly dropdowns with a search bar on most CGIs. Add a recents list to hgGateway and to the species bar and to the 'Genomes' dropdown menu. Track recently selected species in localStorage. Add toGenome and fromGenome arguemnts to hubApi/liftOver in order to find appropriate liftover assemblies, refs #36232 diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index cb6f023cd7d..ff900b9bee4 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -258,30 +258,39 @@ 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 jsIncludeAutoCompleteLibs() +/* Prints out <script src="..."> tags for autocompleteCat.js */ +{ +jsIncludeFile("jquery.js", NULL); +jsIncludeFile("jquery-ui.js", NULL); +webIncludeResourceFile("jquery-ui.css"); +jsIncludeFile("autocompleteCat.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>"); puts("<script type=\"text/javascript\" " "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. */