mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove node from workflow before removing associated element
from canvas, make sure to actually set "active_node" to null when clearing the active node.
This commit is contained in:
@@ -252,8 +252,8 @@ $.extend( Node.prototype, {
|
||||
t.destroy();
|
||||
$(t.element).draggable('destroy');
|
||||
});
|
||||
workflow.remove_node( this );
|
||||
$(this.element).draggable('destroy').remove();
|
||||
workflow.remove_node( this );
|
||||
},
|
||||
make_active : function () {
|
||||
$(this.element).addClass( "toolForm-active" );
|
||||
@@ -442,6 +442,7 @@ $.extend( Workflow.prototype, {
|
||||
clear_active_node : function() {
|
||||
if ( this.active_node ) {
|
||||
this.active_node.make_inactive();
|
||||
this.active_node = null;
|
||||
}
|
||||
parent.show_form_for_tool( "<div>No node selected</div>" );
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user