b5ca727e4c614bc40ee46ef96bdac3972ca21225 gperez2 Fri Jan 26 10:26:18 2024 -0800 More edits to the names for the right-click exon/codon options, refs #32487 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 219c0ba..a27a8ae 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2376,34 +2376,34 @@ var ele; if (document.TrackForm) ele = document.TrackForm; else ele = document.TrackHeaderForm; if (name) // Add or update form input with gene to highlight suggestBox.updateFindMatches(name); ele.submit(); } } } } else if (cmd === 'zoomCodon' || cmd === 'zoomExon') { var num, ajaxCmd, msg; if (cmd === 'zoomCodon') { - msg = "Please enter the codon number to jump to:"; + msg = "Please enter the codon number to zoom to:"; ajaxCmd = 'codonToPos'; } else { - msg = "Please enter the exon number to jump to:"; + msg = "Please enter the exon number to zoom to:"; ajaxCmd = 'exonToPos'; } rightClick.myPrompt(msg, function(results) { $.ajax({ type: "GET", url: "../cgi-bin/hgApi", data: cart.varsToUrlData({ 'db': getDb(), 'cmd': ajaxCmd, 'num': results, 'table': args.table, 'name': args.name }), trueSuccess: rightClick.handleZoomCodon, success: catchErrorOrDispatch, error: errorHandler, cache: true }); }); } else if (cmd === 'hgTrackUi_popup') { @@ -2900,38 +2900,38 @@ o[rightClick.makeImgTag("magnify.png")+" Zoom to this exon"] = { onclick: function(menuItemClicked, menuObject) { $.ajax({ type: "GET", url: "../cgi-bin/hgApi", data: cart.varsToUrlData({ 'db': getDb(), 'cmd': "exonToPos", 'num': exonNum, 'table': table, 'name': name}), trueSuccess: rightClick.handleZoomCodon, success: catchErrorOrDispatch, error: errorHandler, cache: true }); return true; } }; - o[rightClick.makeImgTag("magnify.png")+" Enter codon to zoom"] = + o[rightClick.makeImgTag("magnify.png")+" Enter codon to zoom to..."] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "zoomCodon", {name: name, table: table}); return true;} }; - o[rightClick.makeImgTag("magnify.png")+" Enter exon to zoom"] = + o[rightClick.makeImgTag("magnify.png")+" Enter exon to zoom to..."] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "zoomExon", {name: name, table: table}); return true;} }; } } } o[rightClick.makeImgTag("dnaIcon.png")+" Get DNA for "+title] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "getDna"); return true; } }; }