05d1f709f575f899f165d40c76d669acc7c070b9 chmalee Fri Sep 15 10:05:51 2023 -0700 Make mathWigs not downloadable in current region because they are not supported in the api yet, refs #21342 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index d87d1c0..342d79f 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5297,31 +5297,32 @@ autoOpen: false, buttons: downloadTrackDataButtons }); } htmlStr = "<p>Use this selection window to download track data" + " for the current region (" + genomePos.get() + "). Please note that large regions" + " may be slow to download.</p>"; htmlStr += "<div><button id='checkAllDownloadTracks'>Check All</button>" + " " + "<button id='uncheckAllDownloadTracks'>Clear All</button>" + "</div>"; _.each(hgTracks.trackDb, function(track, trackName) { showDisabledMsg = false; if (!trackName.includes("Squish") && trackName !== "ruler" && track.visibility > 0) { htmlStr += "<input type=checkbox class='downloadTrackName' id='" + trackName + "'"; - if (trackName.startsWith("ct_") || !tdbIsLeaf(track)) { + if (trackName.startsWith("ct_") || trackName === "hgPcrResult" || + track.type === "mathWig" || !tdbIsLeaf(track)) { showDisabledMsg = true; htmlStr += " disabled "; } else { htmlStr += " checked "; } htmlStr += ">"; htmlStr += "<label>" + track.shortLabel + "</label>"; htmlStr += "</input>"; if (showDisabledMsg) { htmlStr += " <span id='" + trackName + "Tooltip'><a href='#'>(?)</a></span>"; } htmlStr += "<br>"; } }); htmlStr += "<div ><label style='padding-right: 10px' for='downloadFileName'>Enter an output file name</label>";