e016f7eae81edd3cfac1f65219dc6c18e91c7e22 chmalee Wed May 22 10:47:12 2024 -0700 Unify the different color pickers (drag select highlights, track item highlights and track item colors) into hui.js. Ensure the text box and palette selector work, refs #24507 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 74ff24e..a0c1877 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1174,32 +1174,30 @@ makeHighlightPicker("hlColor", document.getElementById("dragSelectDialog"), null); document.body.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(); } }); - // activate the color picker - activateColorPicker("#hlColorInput", "#hlColorPicker"); } if (hgTracks.windows) { var i,len; var newerPosition = newPosition; if (hgTracks.virtualSingleChrom && (newPosition.search("multi:")===0)) { newerPosition = genomePos.disguisePosition(newPosition); } var str = newerPosition + "
\n"; var str2 = "
\n"; str2 += "