6eaa03a52d1610050bcacf6e3a56c3086677574d chmalee Thu May 7 11:02:34 2026 -0700 Change create to add in the highlight menu for creating a myVariants item, refs #33808 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 2ce3c734c96..9245b74d78b 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2111,31 +2111,31 @@ "Add Highlight": function() { // Highlight selection if ($("#disableDragHighlight").prop('checked')) hgTracks.enableHighlightingDialog = false; var hlColor = $("#hlColorInput").val(); dragSelect.highlightThisRegion(newPosition, true, hlColor); $(this).dialog("close"); }, "Save Color": function() { var hlColor = $("#hlColorInput").val(); dragSelect.saveHlColor( hlColor ); $(this).dialog("close"); } }; if (typeof doMyVariants !== 'undefined' && doMyVariants) { - dragSelectButtons["Create Annotation"] = function() { + dragSelectButtons["Add Annotation"] = function() { let data = {}; let pos = parsePosition(newPosition); data.chrom = pos.chrom; data.start = data.thickStart = pos.start.toString(); data.end = data.thickEnd = pos.end.toString(); data.score = "0"; data.strand = "."; data.color = $("#hlColorInput").val(); data.name = ""; data.description = ""; data.ref = ""; data.alt = ""; data.trackName = "myVariants"; $(this).dialog("close"); let req = encodeURIComponent(`myVariants myVariants ${JSON.stringify(data)}`);