Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor fixes for recent track drop down and export track
  • Loading branch information
csw11004 committed Oct 12, 2015
1 parent 0fbaff4 commit 4f20779
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions VQI_GenomeBrowser.js
Expand Up @@ -569,8 +569,6 @@ function VQI_GenomeBrowser(id) {
if (name !== undefined) { if (name !== undefined) {
var trackName = name; var trackName = name;
} }
trackInfo.push({name: trackName, type: "custom", args: {table_name: CurrentFileHandle, exportable: true}});
updateRecentTrackDropDown();
self.addTrack(trackName, "custom", {table_name: CurrentFileHandle}); self.addTrack(trackName, "custom", {table_name: CurrentFileHandle});
}).error(function (req, status, error) { }).error(function (req, status, error) {
$("body").append(status + ": " + error); $("body").append(status + ": " + error);
Expand Down Expand Up @@ -757,8 +755,6 @@ function VQI_GenomeBrowser(id) {
for (var key in genomes[genome]) for (var key in genomes[genome])
{ {
this.addTrack(genome + "_" + key, key, genomes[genome][key]) this.addTrack(genome + "_" + key, key, genomes[genome][key])
trackInfo.push({name: genome + "_" + key, type: key, args: genomes[genome][key]});
updateRecentTrackDropDown();
} }
} }
} }
Expand Down Expand Up @@ -813,6 +809,21 @@ function VQI_GenomeBrowser(id) {
trackList.push(new CustomTrack(name, graphRegion.append("g"), args)); 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(); setPanExtent();
graph(chrom_curr); graph(chrom_curr);


Expand Down
2 changes: 1 addition & 1 deletion dynamic_loading.php
Expand Up @@ -570,7 +570,7 @@
} }
} }


function getFullTrackData($fileHandles){ function getFullTrackData($fileHandle){
$returnArray = []; $returnArray = [];


$db_name = $GLOBALS['db_name']; $db_name = $GLOBALS['db_name'];
Expand Down

0 comments on commit 4f20779

Please sign in to comment.