diff options
Diffstat (limited to 'src/widget/form.js')
| -rw-r--r-- | src/widget/form.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/form.js b/src/widget/form.js index 51864cf0..76051832 100644 --- a/src/widget/form.js +++ b/src/widget/form.js @@ -61,8 +61,8 @@ angularWidget('form', function(form){ parentForm = $formFactory.forElement(formElement), form = $formFactory(parentForm); formElement.data('$form', form); - formElement.bind('submit', function(event){ - event.preventDefault(); + formElement.bind('submit', function(event) { + if (!formElement.attr('action')) event.preventDefault(); }); if (name) { this[name] = form; |
