66b54e4201d100beff80b786ac2964f383d2b99e angie Wed Apr 5 16:31:05 2017 -0700 Adding HGVS to hgTracks position/search box watermark, thx Max for suggesting. diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index c807419..8fc9427 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -49,31 +49,31 @@ updateFindMatches: function(val) { // highlight genes choosen from suggest list (#6330) if ($('#hgFindMatches').length) $('#hgFindMatches').val(val); else $('#positionInput').parents('form').append(""); }, initialized: false, init: function(db, assemblySupportsGeneSuggest, selectCallback, clickCallback) { // selectCallback(item): called when the user selects a new genomic position from the list // clickCallback(position): called when the user clicks on positionDisplay this.initialized = true; var lastSelected = null; // this is the last value entered by the user via a suggestion (used to distinguish manual entry in the same field) var waterMark; if (assemblySupportsGeneSuggest) { - waterMark = "enter position, gene symbol or search terms"; + waterMark = "enter position, gene symbol, HGVS or search terms"; } else { waterMark = "enter position or search terms"; } $('#positionInput').val(""); $('#positionInput').Watermark(waterMark, '#686868'); if (assemblySupportsGeneSuggest) { $('#positionInput').autocomplete({ delay: 500, minLength: 2, source: this.ajaxGet(db), open: function(event, ui) { var pos = $(this).offset().top + $(this).height(); if (!isNaN(pos)) { var maxHeight = $(window).height() - pos - 30; // take off a little more because IE needs it var auto = $('.ui-autocomplete');