Fix broken code that prevents LinkSubmit from operating
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b15f9953 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b15f9953 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b15f9953 Branch: refs/heads/master Commit: b15f9953fd51d6a78b14fc8ad26912efedb0ed22 Parents: 7fcc81b Author: Howard M. Lewis Ship <[email protected]> Authored: Sat Apr 20 19:42:04 2013 -0400 Committer: Howard M. Lewis Ship <[email protected]> Committed: Sat Apr 20 19:42:04 2013 -0400 ---------------------------------------------------------------------- .../META-INF/modules/t5/core/forms.coffee | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b15f9953/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee ---------------------------------------------------------------------- diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee index dc671f7..8c55aaa 100644 --- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee +++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/forms.coffee @@ -154,7 +154,7 @@ define ["./events", "./dom", "./builder", "_"], # the form's "submit" event, which we need. if form.trigger "submit" - form.submit() + form.element.submit() # And cancel the default behavior for the original click event return false
