4c756ae28c7c8a654ba4a8877224f03513999b64 chmalee Tue May 19 14:16:27 2026 -0700 More fixes from code review. Hopefully have cleared the last remaining vestiges of the first version of the tooltip implementation, refs #37528 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 2b1259d1692..ba1cda170cb 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2565,31 +2565,31 @@ if (loc.length === 4) { var myLeft = parseInt(loc[0]); var myRight = parseInt(loc[2]); if (chr.top === -1) { chr.left = myLeft; chr.right = myRight; chr.top = parseInt(loc[1]); chr.bottom = parseInt(loc[3]); } else { if (chr.left > myLeft) chr.left = myLeft; if (chr.right < parseInt(loc[2])) chr.right = parseInt(loc[2]); } - let title = this.getAttribute("originalTitle") || this.getAttribute("title"); + let title = this.getAttribute("data-tooltip") || this.getAttribute("title"); var range = title.substr(title.lastIndexOf(':')+1); var pos = range.split('-'); if (pos.length === 2) { if (chr.name.length === 0) { chr.beg = parseInt(pos[0]); //chr.end = parseInt(pos[1]); chr.name = title.substring(title.lastIndexOf(' ')+1, title.lastIndexOf(':')); } else { if (chr.beg > parseInt(pos[0])) chr.beg = parseInt(pos[0]); } if (chr.end < parseInt(pos[1])) { chr.end = parseInt(pos[1]); if (lastX === -1)