09cccde58759e1cb56fbb62e1b7b94aaffe1fd85 max Tue Apr 11 11:39:51 2017 -0700 adapting menu text, thx to Brian Lee, refs #19118 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index f8916e0..71ee822 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1095,31 +1095,31 @@ $("body").append("<div id='dragSelectDialog'>" + "<p><ul>"+ "<li>Hold <b>Shift+drag</b> to show this dialog or zoom" + "<li>Hold <b>Alt+drag</b> to add a highlight (no dialog)" + "<li>Hold <b>Ctrl+drag</b> or <b>Cmd+drag</b> to zoom (no dialog)" + "<li>To cancel, press <tt>Esc</tt> anytime or drag mouse outside image" + "<li>Highlight the current position with <tt>h then m</tt>" + "<li>Clear all highlights with View - Clear Highlights or <tt>h then c</tt>" + "</ul></p>" + "<p>Highlight color: <input type='text' style='width:70px' id='hlColorInput' value='"+dragSelect.hlColor+"'>" + //"<span id='hlColorBox' style='width:20px'></span>" + " <input id='hlColorPicker'>" + " <a href='#' id='hlReset'>Reset</a></p>" + "<input style='float:left' type='checkbox' id='disableDragHighlight'>" + "<span style='border:solid 1px #DDDDDD; padding:3px;display:inline-block' id='hlNotShowAgainMsg'>Don't show this again and always zoom with shift.<br>" + - "Re-enable via the 'configure' menu</span></p>"+ + "Re-enable via 'View - Configure Browser' (<tt>c then f</tt>)</span></p>"+ "Selected chromosome position: <span id='dragSelectPosition'></span>"); dragSelectDialog = $("#dragSelectDialog")[0]; // reset value $('#hlReset').click(function() { $('#hlColorInput').val(dragSelect.hlColorDefault); $("#hlColorPicker").spectrum("set", dragSelect.hlColorDefault); }); // allow to click checkbox by clicking on the label $('#hlNotShowAgainMsg').click(function() { $('#disableDragHighlight').click();}); // click "add highlight" when enter is pressed in color input box $("#hlColorInput").keyup(function(event){ if(event.keyCode == 13){ $(".ui-dialog-buttonset button:nth-child(3)").click(); } });