cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r290262 - in /cocoon: blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js trunk/status.xml
Date Mon, 19 Sep 2005 20:39:40 GMT
Author: joerg
Date: Mon Sep 19 13:39:33 2005
New Revision: 290262

URL: http://svn.apache.org/viewcvs?rev=290262&view=rev
Log:
fixing bug 33318:
CForms: Fixed JavaScript error in forms-lib.js when using keyword 'undefined' and Mac IE 5.0.

Modified:
    cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js
    cocoon/trunk/status.xml

Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js?rev=290262&r1=290261&r2=290262&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js (original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/js/forms-lib.js Mon Sep
19 13:39:33 2005
@@ -59,8 +59,9 @@
  * 'forms_submit_id' field the name of the element which triggered the submit.
  */
 function oldforms_submitForm(element, name) {
-    if (name == undefined) {
-        name = element.name;
+    // Mac IE 5 doesn't recognize key word 'undefined', so use typeof and compare strings
+    if (typeof(name) == "undefined") {
+      name = element.name;
     }
     
     var form = forms_getForm(element);

Modified: cocoon/trunk/status.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/status.xml?rev=290262&r1=290261&r2=290262&view=diff
==============================================================================
--- cocoon/trunk/status.xml (original)
+++ cocoon/trunk/status.xml Mon Sep 19 13:39:33 2005
@@ -198,6 +198,9 @@
 
   <changes>
   <release version="@version@" date="@date@">
+    <action dev="JH" type="fix" fixes-bug="33318" due-to="Dan Durkin" due-to-email="ddurkin@scilearn.com">
+      CForms: Fixed JavaScript error in forms-lib.js when using keyword <code>undefined</code>
and Mac IE 5.0.
+    </action>
     <action dev="CZ" type="add">
       Portal block: Remove aspect datas from coplet datas. Attributes are now used instead.
     </action>



Mime
View raw message