Trackster bug fix for running tool outside of a group.

This commit is contained in:
Jeremy Goecks
2012-02-21 16:32:09 -05:00
parent 5395733f68
commit 66ef8a09a1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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() {