You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2010/08/29 05:03:07 UTC
svn commit: r990481 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Author: andyhot
Date: Sun Aug 29 03:03:06 2010
New Revision: 990481
URL: http://svn.apache.org/viewvc?rev=990481&view=rev
Log:
fixes TAP5-1261
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=990481&r1=990480&r2=990481&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Sun Aug 29 03:03:06 2010
@@ -1444,6 +1444,10 @@ Tapestry.FormEventManager = Class.create
setSubmittingElement : function(element) {
if (!this.submitHidden) {
+ // skip if this is not a tapestry controlled form
+ if (this.form.getInputs("hidden", "t:formdata").size() == 0)
+ return;
+
var hiddens = this.form.getInputs("hidden", "t:submit");
if (hiddens.size() == 0) {