3d8b0303c81cfaa92123682a67e37c104b0bcf55 max Wed Sep 10 07:53:46 2025 -0700 shortening the help text under the position box, not sure why this never made it out, foudn in sandbox, refs #35939 diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index 1d60c197091..78b3ddbbbe8 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -87,33 +87,33 @@ if ($posInput[0] !== document.activeElement) { // Reset value before adding watermark -- only if user is not already typing here $posInput.val(""); } var waterMark = suggestBox.restoreWatermark(db, assemblySupportsGeneSuggest); if (assemblySupportsGeneSuggest) { $.widget("custom.autocompletePosInput", $.ui.autocomplete, { _renderMenu: function(ul, items) { var that = this; jQuery.each(items, function(index, item) { that._renderItemData(ul, item); }); if ($(this)[0].term === "") { - ul.append("
Showing 5 most recent searches. Enter 2 or more characters to start auto-complete search. Click the go button or press Enter to search across all tracks, hubs and our website. See 'examples' link above.
"); + ul.append("
Showing 5 most recent searches. Enter 2 or more characters to start auto-complete search.
"); } else { - ul.append("
Click the go button or press Enter to search across all tracks, hubs and our website. See 'examples' link above.
"); + ul.append("
Click 'Search' or press Enter to search all tracks, hubs and our web pages. See 'examples' link.
"); } }, _renderItem: function(ul, item) { // In order to use HTML markup in the autocomplete, one has to overwrite // autocomplete's _renderItem method using .html instead of .text. // http://forum.jquery.com/topic/using-html-in-autocomplete let clockIcon = ''; if ($("#positionInput").val().length < 2) { clockIcon = ' '; } return $("
  • ") .data("ui-autocomplete-item", item) .append($("").html(clockIcon + item.label)) .appendTo(ul); }