diff --git a/static/scripts/trackster.js b/static/scripts/trackster.js index 235edc3cfc2..ef4a21c3824 100644 --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -2050,7 +2050,7 @@ extend(Tool.prototype, { // already in group, add track to group. if (current_track.container === view) { // Create new group. - var group = new DrawableGroup(this.name, this.track.view); + var group = new DrawableGroup(view, view, { name: this.name }) // Replace track with group. var index = current_track.container.replace_drawable(current_track, group, false); diff --git a/templates/tracks/browser.mako b/templates/tracks/browser.mako index 0ed394a3826..b48e4aa2a51 100644 --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -232,7 +232,7 @@ ${h.js( "galaxy.base", "galaxy.panels", "json2", "jquery", "jstorage", "jquery.e $("#add-tracks-icon").click( function() { add_tracks(); } ); $("#add-group-icon").click( function() { - view.add_drawable( new DrawableGroup(view, view, { name: "New Group" }) ); + view.add_drawable( new DrawableGroup(view, view, { name: "New Group" }) ); }); $("#save-icon").click( function() {