1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/d9e2418fb00a/ changeset: d9e2418fb00a user: jgoecks date: 2012-12-11 22:47:54 summary: Trackster: when creating a visualization, default the view to the first chromosome. affected #: 2 files diff -r 376a3714dc1510d3a1405575fc2667b68a28a695 -r d9e2418fb00aefd0a8f65a4686dae4e8cd6cd16d static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -1190,7 +1190,7 @@ view.chrom_select.html(chrom_options); view.chrom_start_index = result.start_index; - chrom_data.resolve(result); + chrom_data.resolve(result.chrom_info); }, error: function() { alert("Could not load chroms for this dbkey:", view.dbkey); diff -r 376a3714dc1510d3a1405575fc2667b68a28a695 -r d9e2418fb00aefd0a8f65a4686dae4e8cd6cd16d static/scripts/viz/trackster_ui.js --- a/static/scripts/viz/trackster_ui.js +++ b/static/scripts/viz/trackster_ui.js @@ -188,7 +188,7 @@ var self = this, view = new tracks.TracksterView(view_config); view.editor = true; - $.when( view.load_chroms_deferred ).then(function() { + $.when( view.load_chroms_deferred ).then(function(chrom_info) { // Viewport config. if (viewport_config) { var @@ -201,6 +201,10 @@ view.change_chrom(chrom, start, end); } } + else { + // No viewport, so use first chromosome. + view.change_chrom(chrom_info[0].chrom); + } // Add drawables to view. if (drawables_config) { 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.