ada8fc4366a49a14ff6678bee0919b64a05e4f62
chmalee
Fri Feb 13 13:20:51 2026 -0800
Make right click titles correct, refs #37096
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 97733b15e5b..356b122ea36 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2965,33 +2965,31 @@
}
}
// pick out the exon number from the mouseover text
// Probably should be a data-exonNum tag on the DOM element
var exonNum = rightClick.mouseOverToExon(title);
// remove special genePred exon mouseover html text
// CGIs now use HTML tags, e.g. "Transcript: ENST00000297261.7
Strand:"
title = rightClick.mouseOverToLabel(decodeURIComponent(title));
if (title.length > maxLength) {
title = title.substring(0, maxLength) + "...";
}
- if (isHgc && ( href.indexOf('g=gtexGene')!== -1
- || href.indexOf('g=unip') !== -1
- || href.indexOf('g=knownGene') !== -1 )) {
+ if (isHgc) {
// For GTEx gene and UniProt mouseovers, replace title (which may be a tissue name) with
// item (gene) name. Also need to unescape the urlencoded characters and the + sign.
let a = /i=([^&]+)/.exec(href);
if (a && a[1]) {
title = decodeURIComponent(a[1].replace(/\+/g, " "));
}
}
if (displayItemFunctions) {
o[rightClick.makeImgTag("magnify.png") + " Zoom to " + title] = {
onclick: function(menuItemClicked, menuObject) {
rightClick.hit(menuItemClicked, menuObject,
"selectWholeGene"); return true;
}
};