You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/06/04 02:50:56 UTC

[2/2] git commit: TAP5-2125: Ajax form submissions via jQuery may pass t:formdata as "t:formdata[]" if there are multiple values

TAP5-2125: Ajax form submissions via jQuery may pass t:formdata as "t:formdata[]" if there are multiple values


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/85284b2b
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/85284b2b
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/85284b2b

Branch: refs/heads/master
Commit: 85284b2b131e19929b407b352cf0264f30090efd
Parents: 99a1d81
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Mon Jun 3 17:50:50 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Mon Jun 3 17:50:50 2013 -0700

----------------------------------------------------------------------
 .../org/apache/tapestry5/t5-core-dom-jquery.coffee |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/85284b2b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
index 8c6506f..8e8e078 100644
--- a/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
+++ b/tapestry-core/src/main/coffeescript/org/apache/tapestry5/t5-core-dom-jquery.coffee
@@ -402,6 +402,7 @@ define ["underscore", "./utils", "jquery"], (_, utils, $) ->
       url: url
       type: options.method?.toUpperCase() or "POST"
       contentType: options.contentType
+      traditional: true
       data: options.parameters
       # jQuery doesn't have the equivalent of Protoype's onException
       error: (jqXHR, textStatus, errorThrown) ->