754cf0e3c480484878009aa5ce6dd815f1126d0c chmalee Fri Mar 6 15:02:34 2026 -0800 most public assembly hubs do not have blat/pcr servers available, so when a public hub has been selected from the 'recents' dropdown in the search bar on those cgis, submit their form so the backend can print a message to page telling the user we don't have blat/pcr availabel for those assemblies, refs #36535 diff --git src/hg/js/autocompleteCat.js src/hg/js/autocompleteCat.js index 7ffb288288b..6146fef979f 100644 --- src/hg/js/autocompleteCat.js +++ src/hg/js/autocompleteCat.js @@ -198,30 +198,33 @@ } }; var autoCompleteSelect = function(event, ui) { // This is a callback for autocomplete to let us know that the user selected // a term from the list. See http://api.jqueryui.com/autocomplete/#event-select // since we are in an autocomplete don't bother saving the // prefix the user typed in, just keep the geneSymbol itself if (this.id === "positionInput") { addRecentSearch(getDb(), ui.item.geneSymbol, ui.item); } // Save genome selection for species search bars, but only if item has a definite db. // Taxa-only selections (like "Human" without a specific db) are handled by the // CGI's response handler after the actual db is determined. if (options.showRecentGenomes && ui.item.db && !ui.item.disabled) { + if (ui.item.originalCategory) { + ui.item.category = ui.item.originalCategory; + } addRecentGenome(ui.item); } if (typeof opts.onSelect === 'function') { opts.onSelect(ui.item, $el); } $el.blur(); }; // Provide default values where necessary: opts.onSelect = opts.onSelect || function(){}; opts.enterSelectsIdentical = opts.enterSelectsIdentical || false; $el.autocompleteCat({ delay: 500, minLength: 0,