commit/galaxy-central: jgoecks: Fix bug in Trackster's 'Add Datasets to Visualization' button.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/7897af491f07/ changeset: 7897af491f07 user: jgoecks date: 2011-11-15 21:50:36 summary: Fix bug in Trackster's 'Add Datasets to Visualization' button. affected #: 1 file diff -r a87d7b85c5771372550bd786bd15606f8e29cf41 -r 7897af491f07535915e2cd917afd0da981a1b45c static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -909,7 +909,7 @@ this.content_div = this.viewport_container; is_container(this.viewport_container, view); // Introduction div shown when there are no tracks. - this.intro_div = $("<div/>").addClass("intro"); + this.intro_div = $("<div/>").addClass("intro").appendTo(this.viewport_container).hide(); var add_tracks_button = $("<div/>").text("Add Datasets to Visualization").addClass("action-button").appendTo(this.intro_div).click(function () { add_tracks(); }); @@ -1077,10 +1077,10 @@ /** Add or remove intro div depending on view state. */ update_intro_div: function() { if (this.drawables.length === 0) { - this.intro_div.appendTo(this.viewport_container); + this.intro_div.show(); } else { - this.intro_div.remove(); + this.intro_div.hide(); } }, update_location: function(low, high) { 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