a76e089c36bb0ffb0877804fa4ae1c6eca75cbba
lrnassar
Tue Aug 27 16:28:48 2024 -0700
Adding an extra line that informs users they can remove specific highlights via right click. Refs #34353
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 6c42e1f..29deda6 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -1163,30 +1163,31 @@
{
newPosition.replace("virt:", "multi:");
// if the user hit Escape just before, do not show this dialo
if (dragSelect.startTime===null)
return;
var dragSelectDialog = $("#dragSelectDialog")[0];
if (!dragSelectDialog) {
$("body").append("
" +
"
"+
"
Hold Shift+drag to show this dialog" +
"
Hold Alt+drag (Windows) or Option+drag (Mac) to add a highlight" +
"
Hold Ctrl+drag (Windows) or Cmd+drag (Mac) to zoom" +
"
To cancel, press Esc anytime during the drag" +
"
Using the keyboard, highlight the current position with h then m" +
"
Clear all highlights with View - Clear Highlights or h then c" +
+ "
Clear specific highlights with right click > Remove highlight" +
"
To merely save the color for the next keyboard or right-click > Highlight operations, click 'Save Color' below" +
"
");
makeHighlightPicker("hlColor", document.getElementById("dragSelectDialog"), null);
$("#dragSelectDialog").append("" +
"Don't show this again and always zoom with shift. " +
"Re-enable via 'View - Configure Browser' (c then f)"+
"Selected chromosome position: ");
dragSelectDialog = $("#dragSelectDialog")[0];
// reset value
// 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();