Skip to content

Commit

Permalink
Revert "Drop unused submit trigger in lifecycle UI"
Browse files Browse the repository at this point in the history
This reverts commit a6c12e6.

Turns out that we need this trigger for layout-only changes.

This commit also tweaks code to trigger "ExportAsConfiguration()" on form
submit, instead of the original imprecise version that was on ".submit"
click.
  • Loading branch information
sunnavy committed Dec 30, 2024
1 parent 9bf0c0c commit 30355a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/static/js/lifecycleui-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ jQuery(function () {
self.ToggleSimulation();
return true;
});

jQuery('form[name=ModifyLifecycle]').submit(function(e) {
self.ExportAsConfiguration();
});
}

RenderNode() {
Expand Down

0 comments on commit 30355a8

Please sign in to comment.