2034220b65d5d8a48658187bcfaf06b0ca72f384 larrym Thu Nov 17 15:17:29 2011 -0800 copy coordinates in location input when user clicks on static copy of position diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 823b28c..3097308 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3037,30 +3037,34 @@ if(thisForm != undefined && $(thisForm).length == 1) { //alert("posting form:"+$(thisForm).attr('name')); updateOrMakeNamedVariable($(thisForm),'hgt.psOutput','on'); return postTheForm($(thisForm).attr('name'),this.href); } return true; }); } if($("#positionInput").length) { $("#positionInput").change(function(event) { if(!suggestBox.lastEntered || suggestBox.lastEntered != $('#positionInput').val()) { $('#position').val($('#positionInput').val()); } }); + $("#positionDisplay").click(function(event) { + genomePos.set($(this).text()); + $('#positionInput').val($(this).text()); + }); } if(imageV2.enabled) { // Make imgTbl allow drag reorder of imgTrack rows dragReorder.init(); var imgTable = $(".tableWithDragAndDrop"); if($(imgTable).length > 0) { $(imgTable).tableDnD({ onDragClass: "trDrag", dragHandle: "dragHandle", scrollAmount: 40, onDragStart: function(ev, table, row) { mouse.saveOffset(ev); $(document).bind('mousemove',posting.blockTheMapOnMouseMove);