cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r608305 - in /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl: src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js status.xml
Date Thu, 03 Jan 2008 01:41:19 GMT
Author: joerg
Date: Wed Jan  2 17:41:18 2008
New Revision: 608305

URL: http://svn.apache.org/viewvc?rev=608305&view=rev
Log:
COCOON-2052: Allow Ajax submission of forms with empty upload field.

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/status.xml

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js?rev=608305&r1=608304&r2=608305&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/js/AjaxForm.js
Wed Jan  2 17:41:18 2008
@@ -151,7 +151,7 @@
     var inputs = node.getElementsByTagName("input");
     dojo.lang.forEach(inputs, function(input){
         if(hasFile){ return; }
-        if(input.getAttribute("type")=="file" && !input.disabled){
+        if(input.getAttribute("type")=="file" && !input.disabled && input.value){
             hasFile = true;
         }
     });

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/status.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/status.xml?rev=608305&r1=608304&r2=608305&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/status.xml (original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/status.xml Wed Jan  2 17:41:18 2008
@@ -16,7 +16,7 @@
   limitations under the License.
 -->
 <!DOCTYPE status [
-<!ELEMENT status (developers, todo, changes)>
+<!ELEMENT status (developers?, todo?, changes)>
 <!ELEMENT developers (person+)>
 <!ELEMENT person EMPTY>
 <!ATTLIST person
@@ -66,16 +66,13 @@
  <!-- The following list contains the changes since the latest 2.1.x version. -->
  <changes>
   <release version="@version@" date="@date@">
-    <action dev="gp">
-      The Cocoon Forms springified (as much as possible).
+    <action dev="JH" type="fix" fixes-bug="COCOON-2052" due-to="Robin Wyles" due-to-email="rob@robinwyles.com">
+      Allow Ajax submission of forms with empty upload field.
     </action>
-    <action dev="none">
-      The Cocoon Forms code base is shared between the 2.1 and 2.2 branches. Until this
-      changes or 2.1 also adopts a per-block status file, all changes must be reported
-      in the main status.xml file.
+    <action dev="GP">
+      The Cocoon Forms springified (as much as possible).
     </action>
   </release>
  </changes>
-
 </status>
 



Mime
View raw message