1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/d04c852fd26a/ changeset: d04c852fd26a user: jgoecks date: 2011-11-02 23:05:38 summary: Trackster: fix bug in showing 'add datasets' button and rename update_track_icons to update_icons for clarity. affected #: 1 file diff -r 611ec861bde5a6c31eace77f94ab8024159cc77c -r d04c852fd26a9792c5431da32072bbb62b07530e static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -679,7 +679,7 @@ request_draw: function() {}, _draw: function() {}, to_json: function() {}, - update_track_icons: function() {}, + update_icons: function() {}, /** * Set drawable name. */ @@ -819,14 +819,14 @@ is_container(this.content_div, this); moveable(this.container_div, this.drag_handle_class, ".group", this); - this.update_track_icons(); + this.update_icons(); }; extend(DrawableGroup.prototype, Drawable.prototype, DrawableCollection.prototype, { /** * Make popup menu for group. */ - update_track_icons: function() { + update_icons: function() { var group = this; var group_dropdown = {}; @@ -1073,7 +1073,7 @@ }, /** Add or remove intro div depending on view state. */ update_intro_div: function() { - if (this.num_tracks === 0) { + if (this.drawables.length === 0) { this.intro_div.appendTo(this.viewport_container); } else { @@ -2531,7 +2531,7 @@ } else if (result['status'] === "data") { if (result['valid_chroms']) { track.valid_chroms = result['valid_chroms']; - track.update_track_icons(); + track.update_icons(); } track.content_div.text(DATA_OK); if (track.view.chrom) { @@ -2547,7 +2547,7 @@ } }); - this.update_track_icons(); + this.update_icons(); }, /** * Additional initialization required before drawing track for the first time. @@ -2625,7 +2625,7 @@ /** * Update track's buttons. */ - update_track_icons: function() { + update_icons: function() { var track = this; // @@ -3287,7 +3287,7 @@ if (!track.filters_available) { track.filters_div.hide(); } - track.update_track_icons(); + track.update_icons(); } } }, @@ -3601,7 +3601,7 @@ this.prefs = this.config.values; this.painter = painters.ReadPainter; - this.update_track_icons(); + this.update_icons(); }; extend(ReadTrack.prototype, Drawable.prototype, TiledTrack.prototype, FeatureTrack.prototype); 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.