177fd93a7c0b621578f7606df0b49c10bb47eda4 braney Wed Nov 29 15:08:45 2017 -0800 remove add to collection right-click menus from hgTracks diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 5e5b401..a50619a 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3257,51 +3257,30 @@ if ( currentlySeen ) { // Remove only when seen o[rightClick.makeImgTag("highlightRemove.png") + " Remove highlight"] = { onclick: rightClick.makeHitCallback('removeHighlight') }; } menu.push(o); } } if (rec.isCustomComposite) { // add delete from composite } - else if (!rec.hasChildren && - (rec.type.startsWith("bigWig") || rec.type.startsWith("wig") || rec.type.startsWith("bedGraph"))) { - o = {}; - o[" Make a New Collection with \"" + rec.shortLabel + "\""] = { - onclick: rightClick.makeHitCallback("newCollection") - }; - menu.push(o); - - if (hgTracks.collections) { - var ii; - for(ii=0; ii < hgTracks.collections.length; ii++) { - o = {}; - o[" Add to \"" + hgTracks.collections[ii].shortLabel + "\""] = { - onclick: rightClick.makeHitCallback("addCollection") - }; - menu.push(o); - } - } - - menu.push($.contextMenu.separator); - } // add sort options if this is a custom composite if (rec.isCustomComposite) { o = {}; o[" Sort by Expression "] = { onclick: function(menuItemClicked, menuObject) { rightClick.hit(menuItemClicked, menuObject, "sortExp"); return true; } }; menu.push(o); o = {}; o[" Sort by Similarity "] = { onclick: function(menuItemClicked, menuObject) {