commit/galaxy-central: jgoecks: Default to first chromosome if viewport exists but is empty.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/40a5470e3082/ changeset: 40a5470e3082 user: jgoecks date: 2013-01-10 21:26:21 summary: Default to first chromosome if viewport exists but is empty. affected #: 1 file diff -r b79236271786713189eae418da5626c159c4f119 -r 40a5470e3082c07fb30381ea0dce83543e85ad46 static/scripts/viz/trackster_ui.js --- a/static/scripts/viz/trackster_ui.js +++ b/static/scripts/viz/trackster_ui.js @@ -191,8 +191,7 @@ $.when( view.load_chroms_deferred ).then(function(chrom_info) { // Viewport config. if (viewport_config) { - var - chrom = viewport_config.chrom, + var chrom = viewport_config.chrom, start = viewport_config.start, end = viewport_config.end, overview_drawable_name = viewport_config.overview; @@ -200,6 +199,10 @@ if (chrom && (start !== undefined) && end) { view.change_chrom(chrom, start, end); } + else { + // No valid viewport, so use first chromosome. + view.change_chrom(chrom_info[0].chrom); + } } else { // No viewport, so use first chromosome. Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket