details:
http://www.bx.psu.edu/hg/galaxy/rev/dcaed9f80caf
changeset: 1488:dcaed9f80caf
user: James Taylor <james(a)jamestaylor.org>
date: Thu Aug 28 13:57:23 2008 -0400
description:
Another IE fix for stacking / deleting workflow editor nodes.
1 file(s) affected in this change:
static/scripts/galaxy.workflow_editor.canvas.js
diffs (27 lines):
diff -r a7248362c37b -r dcaed9f80caf static/scripts/galaxy.workflow_editor.canvas.js
--- a/static/scripts/galaxy.workflow_editor.canvas.js Thu Aug 28 13:38:54 2008 -0400
+++ b/static/scripts/galaxy.workflow_editor.canvas.js Thu Aug 28 13:57:23 2008 -0400
@@ -446,16 +446,18 @@
parent.show_form_for_tool( "<div>No node selected</div>"
);
},
activate_node : function( node ) {
- this.clear_active_node();
- parent.show_form_for_tool( node.form_html, node );
- node.make_active();
- this.active_node = node;
+ if ( this.active_node != node ) {
+ this.clear_active_node();
+ parent.show_form_for_tool( node.form_html, node );
+ node.make_active();
+ this.active_node = node;
+ }
},
node_changed : function ( node ) {
this.has_changes = true;
if ( this.active_node == node ) {
// Reactive with new form_html
- this.activate_node( node );
+ parent.show_form_for_tool( node.form_html, node );
}
}
});