Skip to content
Permalink
Browse files

Minor fixes for recent track drop down and export track

  • Loading branch information
csw11004 committed Oct 12, 2015
1 parent 0fbaff4 commit 4f2077935a611809f55d415fb3a9df619557c2f1
Showing with 16 additions and 5 deletions.
  1. +15 −4 VQI_GenomeBrowser.js
  2. +1 −1 dynamic_loading.php
@@ -569,8 +569,6 @@ function VQI_GenomeBrowser(id) {
if (name !== undefined) {
var trackName = name;
}
trackInfo.push({name: trackName, type: "custom", args: {table_name: CurrentFileHandle, exportable: true}});
updateRecentTrackDropDown();
self.addTrack(trackName, "custom", {table_name: CurrentFileHandle});
}).error(function (req, status, error) {
$("body").append(status + ": " + error);
@@ -757,8 +755,6 @@ function VQI_GenomeBrowser(id) {
for (var key in genomes[genome])
{
this.addTrack(genome + "_" + key, key, genomes[genome][key])
trackInfo.push({name: genome + "_" + key, type: key, args: genomes[genome][key]});
updateRecentTrackDropDown();
}
}
}
@@ -813,6 +809,21 @@ function VQI_GenomeBrowser(id) {
trackList.push(new CustomTrack(name, graphRegion.append("g"), args));
}

var inTrackInfo = false;
for(var i in trackInfo)
{
if (trackInfo[i].name == name)
{
inTrackInfo = true;
break;
}
}
if(!inTrackInfo)
{
trackInfo.push({name: name, type: type, args: args});
updateRecentTrackDropDown();
}

setPanExtent();
graph(chrom_curr);

@@ -570,7 +570,7 @@ function getTrackData($fileHandle,$type,$chrom,$start,$end){
}
}
function getFullTrackData($fileHandles){
function getFullTrackData($fileHandle){
$returnArray = [];
$db_name = $GLOBALS['db_name'];

0 comments on commit 4f20779

Please sign in to comment.
You can’t perform that action at this time.