details: http://www.bx.psu.edu/hg/galaxy/rev/5fa8803716fd changeset: 2582:5fa8803716fd user: James Taylor <james@jamestaylor.org> date: Wed Aug 19 18:07:55 2009 -0400 description: Tweak workflow save changes to use more specific '#right-content' 2 file(s) affected in this change: static/scripts/galaxy.workflow_editor.canvas.js templates/workflow/editor.mako diffs (49 lines): diff -r 3353b15d0fb5 -r 5fa8803716fd static/scripts/galaxy.workflow_editor.canvas.js --- a/static/scripts/galaxy.workflow_editor.canvas.js Wed Aug 19 17:51:46 2009 -0400 +++ b/static/scripts/galaxy.workflow_editor.canvas.js Wed Aug 19 18:07:55 2009 -0400 @@ -439,25 +439,11 @@ }); }); }, - enable_auto_save : function() { - // Implements auto-saving based on whether the inputs change. We consider - // "changed" to be when a field is accessed and not necessarily modified - // because of an issue where "onchange" is not triggered when activating - // another node, or saving the workflow. - outer_this = this; - $(".toolFormBody").find("input,textarea,select").each( function() { - $(this).focus( function() { - outer_this.active_form_has_changes = true; - }); - }); - }, check_changes_in_active_form : function() { // If active form has changed, save it if (this.active_form_has_changes) { this.has_changes = true; - $(".toolFormBody").find("form").each( function() { - $(this).submit(); - }); + $("#right-content").find("form").submit(); this.active_form_has_changes = false; } }, diff -r 3353b15d0fb5 -r 5fa8803716fd templates/workflow/editor.mako --- a/templates/workflow/editor.mako Wed Aug 19 17:51:46 2009 -0400 +++ b/templates/workflow/editor.mako Wed Aug 19 18:07:55 2009 -0400 @@ -303,6 +303,15 @@ $(this).remove(); make_popupmenu( b, options ); }); + // Implements auto-saving based on whether the inputs change. We consider + // "changed" to be when a field is accessed and not necessarily modified + // because of an issue where "onchange" is not triggered when activating + // another node, or saving the workflow. + $(this).find("input,textarea,select").each( function() { + $(this).focus( function() { + workflow.active_form_has_changes = true; + }); + }); }); }