1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/ec85ba64a5b7/ changeset: ec85ba64a5b7 user: jgoecks date: 2012-01-16 23:36:04 summary: Trackster: true replacement of a track with a group when running a tool. affected #: 1 file diff -r a5703335e20544613416329c2fbd2a5c7af965e4 -r ec85ba64a5b751f53c2288fdbd27ae228a8d89c3 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -974,9 +974,8 @@ if (update_html) { old_drawable.container_div.replaceWith(new_drawable.container_div); } - return true; - } - return false; + } + return index; }, /** * Remove drawable from this collection. @@ -1839,18 +1838,13 @@ // Create new group. var group = new DrawableGroup(this.name, this.track.view); + // Replace track with group. + var index = current_track.container.replace_drawable(current_track, group, false); + + // Update HTML. // FIXME: this is ugly way to replace a track with a group -- make this easier via // a Drawable or DrawableCollection function. - // NOTE: doing this: - // current_track.container.replace_drawable(current_track, group, true); - // causes problems with sliders, so it's not used right now. - - // Add group to view. - current_track.view.add_drawable(group); - current_track.view.content_div.append(group.container_div); - - // Move track from view to group. - current_track.container.remove_drawable(current_track); + group.container_div.insertBefore(current_track.view.content_div.children()[index]); group.add_drawable(current_track); current_track.container_div.appendTo(group.content_div); container = group; 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.