8cdfd0efc540471112f850be74da7b87a8bd9b1e chmalee Fri May 8 13:48:54 2026 -0700 Fix zoom to exon/codon option not appearing for genePreds/bigGenePreds/bigBeds. This broke because of tooltip code that now moves tooltip text into a data-tooltip attribute instead of leaving the text in the title attribute, refs #37521 diff --git src/hg/js/utils.js src/hg/js/utils.js index 01dd56c17f4..5fc60b01e86 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -3988,36 +3988,31 @@ var id = this.id; if (!id || id.length === 0) { id = ''; var tr = $( this ).parents('tr.imgOrd'); if ( $(tr).length === 1 ) { var a = /tr_(.*)/.exec($(tr).attr('id')); // voodoo if (a && a[1]) { id = a[1]; } } } if (id.length > 0) { rightClick.currentMapItem = rightClick.makeMapItem(id); if (rightClick.currentMapItem) { rightClick.currentMapItem.href = this.href; - rightClick.currentMapItem.title = this.title; - // if the custom mouseover code has removed this title, check the attr - // for the original title - if (this.title.length === 0) { - rightClick.currentMapItem.title = this.getAttribute("originalTitle"); - } + rightClick.currentMapItem.title = this.getAttribute("data-tooltip") || this.title; // Handle linked features with separate clickmaps for each exon/intron if ((this.title.indexOf('Exon ') === 0) || (this.title.indexOf('Intron ') === 0)) { // if the title is Exon ... or Intron ... // then search for the sibling with the same href // that has the real title item label var elem = this.parentNode.firstChild; while (elem) { if ((elem.href === this.href) && !((elem.title.indexOf('Exon ') === 0) || (elem.title.indexOf('Intron ') === 0))) { rightClick.currentMapItem.title = elem.title; break; } elem = elem.nextSibling; }