555f22a0e1f02c1f07d98a0cb0906a152748295f chmalee Tue May 28 11:59:00 2024 -0700 Fix input not being a part of its parent, #33769 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index a0c1877..70bdb62 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1160,31 +1160,31 @@ if (dragSelect.startTime===null) return; var dragSelectDialog = $("#dragSelectDialog")[0]; if (!dragSelectDialog) { $("body").append("
" + "

"); makeHighlightPicker("hlColor", document.getElementById("dragSelectDialog"), null); - document.body.append("" + + $("#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(); } }); }