commit/galaxy-central: jgoecks: Trackster bug fixes when (a) running tools in a shared visualization and (b) when drawing a track created by a tool.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/7eb9191a9668/ changeset: r5587:7eb9191a9668 user: jgoecks date: 2011-05-19 20:29:58 summary: Trackster bug fixes when (a) running tools in a shared visualization and (b) when drawing a track created by a tool. affected #: 2 files (176 bytes) --- a/static/scripts/trackster.js Thu May 19 13:47:52 2011 -0400 +++ b/static/scripts/trackster.js Thu May 19 14:29:58 2011 -0400 @@ -292,7 +292,7 @@ } */ - // Look for key in cache and, if found, do callback. + // Look for entry and return if found. var entry = this.get(this.gen_key(low, high, mode)); if (entry) { return entry; @@ -1867,6 +1867,10 @@ * tiles after drawing new tiles. */ draw: function(force, clear_after) { + // Cannot draw without dataset_id; dataset_id may not be set if track dynamically created + // and is waiting for dataset. + if (!this.dataset_id) { return; } + var low = this.view.low, high = this.view.high, range = high - low, --- a/templates/visualization/display.mako Thu May 19 13:47:52 2011 -0400 +++ b/templates/visualization/display.mako Thu May 19 14:29:58 2011 -0400 @@ -64,7 +64,7 @@ var default_data_url = "${h.url_for( controller='/tracks', action='data' )}", raw_data_url = "${h.url_for( controller='/tracks', action='raw_data' )}", run_tool_url = "${h.url_for( controller='/tracks', action='run_tool' )}", - rerun_tool_url = "${h.url_for( controller='/tracks', action='run_tool' )}", + rerun_tool_url = "${h.url_for( controller='/tracks', action='rerun_tool' )}", reference_url = "${h.url_for( controller='/tracks', action='reference' )}", chrom_url = "${h.url_for( controller='/tracks', action='chroms' )}", dataset_state_url = "${h.url_for( controller='/tracks', action='dataset_state' )}", 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