Skip to content

Commit

Permalink
Fix regular onSubmit too
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Mar 25, 2013
1 parent 308aec4 commit cafa890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hawtio-web/src/main/webapp/app/forms/js/test.ts
Expand Up @@ -19,8 +19,8 @@ module Forms {
notification('success', 'Cancel clicked on form "' + form.get(0).name + '"');
};

$scope.onSubmit = (form) => {
notification('success', 'Form "' + form.get(0).name + '" submitted... (well not really)');
$scope.onSubmit = (json, form) => {
notification('success', 'Form "' + form.get(0).name + '" submitted... (well not really), data:' + JSON.stringify(json));
};

$scope.derp = (json, form) => {
Expand Down

0 comments on commit cafa890

Please sign in to comment.