a098c6bab90f79d280cb6f784805c41da0127569 larrym Tue Oct 5 13:58:46 2010 -0700 suppress help links for metadata items which have no detailed help diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 7531e90..2ea7f46 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2396,6 +2396,18 @@ // If index == 0 we update all help items, otherwise we only update the one == index. var i; var db = getDb(); + var disabled = { + 'accession': 1, + 'dataVersion': 1, + 'grant': 1, + 'lab': 1, + 'labVersion': 1, + 'replicate': 1, + 'setType': 1, + 'softwareVersion': 1, + 'subId': 1, + 'view': 1, + } for(i=1;true;i++) { var span = $("#helpLink" + i); if(span.length > 0) { @@ -2415,7 +2427,10 @@ } else { str = "../ENCODE/otherTerms.html#" + val; } + if(typeof(disabled[val]) == 'undefined') span.html("<a target='_blank' title='detailed descriptions of terms' href='" + str + "'>" + text + "</a>"); + else + span.empty(); } } else { return;