61117e2c9ed14ea0c7ffcccbe2fc9a578ea450bb tdreszer Thu Jan 26 11:32:16 2012 -0800 Right-click 'clickThrough' cfg was erroneously providing 2 options on subtracks. Click-through is already provided by composite cfg option. diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 3b563e1..68d89ce 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2213,31 +2213,32 @@ if (!dragSelect.autoHideSetting) { str += selectedImg; } o[str] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "hilightMode"); return true; } }; menu.push(o); } //menu.push({"view image": {onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "viewImg"); return true; }}}); } if(rightClick.selectedMenuItem && rec && rec["configureBy"] != 'none') { // Add cfg options at just shy of end... var o = new Object(); - if(tdbIsLeaf(rec)) { + if(tdbIsLeaf(rec) && (!tdbIsCompositeSubtrack(rec) || rec["configureBy"] != 'clickThrough')) { + // Note that subtracks never do clickThrough because composite cfg is the desired clickThrough o[rightClick.makeImgTag("wrench.png")+" Configure "+rec.shortLabel] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "hgTrackUi_popup"); return true; } }; if(rec.parentTrack != undefined) o[rightClick.makeImgTag("folderWrench.png")+" Configure "+ rec.parentLabel + " track set..."] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked,menuObject,"hgTrackUi_follow"); return true; } }; } else o[rightClick.makeImgTag("folderWrench.png")+" Configure "+rec.shortLabel + " track set..."] = {