Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'send-t-zoneid-2'

  • Loading branch information...
commit 816d8fd04a3bb8312023731e5619a77eb296dfd6 2 parents b8cebfb + 940c42b
@jochenberger authored
Showing with 13 additions and 8 deletions.
  1. +13 −8 src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js
View
21 src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js
@@ -577,7 +577,7 @@ $.widget( "ui.tapestryZone", {
*/
update: function(specs) {
- var that = this;
+ var that = this, zoneIdInfo = {'t:zoneid': this.element.attr("id")};
var ajaxRequest = {
url: specs.url,
type: "POST",
@@ -613,13 +613,18 @@ $.widget( "ui.tapestryZone", {
$.extend(specs.params, this.options.parameters);
}
- if (specs.params) {
- $.extend(ajaxRequest, {
- data: specs.params
- });
- }
- $.tapestry.utils.ajaxRequest(ajaxRequest);
- },
+ if(specs.params && typeof specs.params === 'string'){
+ $.extend(ajaxRequest, {
+ data: specs.params + '&' + $.param(zoneIdInfo)
+ });
+ } else {
+ $.extend(ajaxRequest, {
+ data: specs.params ? $.extend(specs.params, zoneIdInfo) : zoneIdInfo
+ });
+ }
+
+ $.tapestry.utils.ajaxRequest(ajaxRequest);
+ },
/**
* Updates the element's content and triggers the appropriate effect on the
Please sign in to comment.
Something went wrong with that request. Please try again.