935f7dbd73e5d2d184685ba3098dd42a95981617 larrym Wed Jul 25 16:19:55 2012 -0700 make watermark more concise to address width problem in hgGateway diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index dd492ea..03805bf 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -57,33 +57,33 @@ { // highlight genes choosen from suggest list (#6330) if($('#hgFindMatches').length) $('#hgFindMatches').val(val); else $('#positionInput').parents('form').append("<input type='hidden' id='hgFindMatches' name='hgFind.matches' " + "value='" + val + "'>"); }, 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 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 str; if(assemblySupportsGeneSuggest) { - str = "enter new position, gene symbol or annotation search terms"; + str = "enter position, gene symbol or search terms"; } else { - str = "enter new position or annotation search terms"; + str = "enter position or search terms"; } $('#positionInput').Watermark(str, '#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'); var curHeight = $(auto).children().length * 21; if (curHeight > maxHeight) $(auto).css({maxHeight: maxHeight+'px', overflow:'scroll'});