1c312b7f5b1ef8a7d371d14415e554d214a97ec2 tdreszer Wed Jan 29 14:07:11 2014 -0800 Fixed highlight implementation (redmine #709) bug resulting in position autocomplete box being superimposed on by hgTracks image (redmine #12589). diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index 7dc4cfd..590a00a 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -69,31 +69,31 @@ } $('#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'); var curHeight = $(auto).children().length * 21; if (curHeight > maxHeight) - $(auto).css({maxHeight: maxHeight+'px', overflow:'scroll'}); + $(auto).css({maxHeight: maxHeight+'px', overflow:'scroll', zIndex: 12}); else $(auto).css({maxHeight: 'none', overflow:'hidden'}); } }, select: function (event, ui) { selectCallback(ui.item); lastSelected = ui.item.value; suggestBox.updateFindMatches(ui.item.internalId); // jQuery('body').css('cursor', 'wait'); // document.TrackHeaderForm.submit(); } }); } // I want to set focus to the suggest element, but unforunately that prevents PgUp/PgDn from