diff options
| author | Vojta Jina | 2011-11-24 19:28:09 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-12-06 13:07:26 -0800 |
| commit | c9f2b1eec5e8a9eaf10faae8a8accf0b771096e0 (patch) | |
| tree | c1393db839d77ea3816956e7c8a2030079fb5e7a /src/directives.js | |
| parent | 163e05ed36deecb341092296186ef6c5cd00f426 (diff) | |
| download | angular.js-c9f2b1eec5e8a9eaf10faae8a8accf0b771096e0.tar.bz2 | |
feat(form): do not prevent submission if action attribute present
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index ea09fc06..54469ea7 100644 --- a/src/directives.js +++ b/src/directives.js @@ -524,9 +524,8 @@ angularDirective("ng:click", function(expression, element){ angularDirective("ng:submit", function(expression, element) { return function(element) { var self = this; - element.bind('submit', function(event) { + element.bind('submit', function() { self.$apply(expression); - event.preventDefault(); }); }; }); |
