cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r332737 - /cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js
Date Sat, 12 Nov 2005 06:17:50 GMT
Author: antonio
Date: Fri Nov 11 22:17:46 2005
New Revision: 332737

URL: http://svn.apache.org/viewcvs?rev=332737&view=rev
Log:
Don't send <fieldset> info. It is always: undefined=undefined.

Modified:
    cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js

Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js?rev=332737&r1=332736&r2=332737&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js (original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/cforms.js Fri Nov
11 22:17:46 2005
@@ -103,6 +103,10 @@
     // Iterate on all form controls
     for (var i = 0; i < form.elements.length; i++) {
         input = form.elements[i];
+        if (typeof(input.type) == "undefined") {
+        	// Skip fieldset
+        	continue;
+        }
         if (input.type == "submit" || input.type == "image") {
             // Skip buttons
             continue;



Mime
View raw message