1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4552fdcfce3a/ changeset: 4552fdcfce3a user: jgoecks date: 2012-02-17 15:50:02 summary: Bug fixes for creating and saving visualizations. affected #: 3 files diff -r 11ff61751765906916738472eed403e166e438ec -r 4552fdcfce3aaf173a26c9fd0cab034e3c7b4df3 lib/galaxy/web/controllers/tracks.py --- a/lib/galaxy/web/controllers/tracks.py +++ b/lib/galaxy/web/controllers/tracks.py @@ -631,7 +631,7 @@ if vis_id == "undefined": # new vis vis = model.Visualization() vis.user = trans.user - vis.title = kwargs['vis_title'] + vis.title = kwargs['title'] vis.type = "trackster" vis.dbkey = dbkey session.add( vis ) diff -r 11ff61751765906916738472eed403e166e438ec -r 4552fdcfce3aaf173a26c9fd0cab034e3c7b4df3 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -682,7 +682,7 @@ var Drawable = function(view, container, obj_dict) { if (!Drawable.id_counter) { Drawable.id_counter = 0; } this.id = Drawable.id_counter++; - this.name = ('name' in obj_dict ? obj_dict.name : null); + this.name = obj_dict.name; this.view = view; this.container = container; this.config = new DrawableConfig({ @@ -1306,7 +1306,6 @@ this.chrom = null; this.vis_id = obj_dict.vis_id; this.dbkey = obj_dict.dbkey; - this.title = obj_dict.title; this.label_tracks = []; this.tracks_to_be_redrawn = []; this.max_low = 0; diff -r 11ff61751765906916738472eed403e166e438ec -r 4552fdcfce3aaf173a26c9fd0cab034e3c7b4df3 templates/tracks/browser.mako --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -208,7 +208,7 @@ * Initialization for editor-specific functions. */ function init_editor() { - $("#title").text(view.title + " (" + view.dbkey + ")"); + $("#title").text(view.name + " (" + view.dbkey + ")"); window.onbeforeunload = function() { if (view.has_changes) { @@ -251,7 +251,7 @@ // FIXME: give unique IDs to Drawables and save overview as ID. var overview_track_name = (view.overview_drawable ? view.overview_drawable.name : null); var payload = { - 'view': view.to_dict(), + 'view': view.to_dict(), 'viewport': { 'chrom': view.chrom, 'start': view.low , 'end': view.high, 'overview': overview_track_name }, 'bookmarks': bookmarks }; @@ -261,7 +261,7 @@ type: "POST", data: { 'vis_id': view.vis_id, - 'vis_title': view.title, + 'title': view.name, 'dbkey': view.dbkey, 'payload': JSON.stringify(payload) }, 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.