continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r548647 - in /maven/continuum/trunk/continuum-webapp: pom.xml src/main/resources/template/default/form-validate.ftl src/main/resources/template/default/validation.js
Date Tue, 19 Jun 2007 08:09:55 GMT
Author: evenisse
Date: Tue Jun 19 01:09:54 2007
New Revision: 548647

URL: http://svn.apache.org/viewvc?view=rev&rev=548647
Log:
[CONTINUUM-1316] Remove duplicated validation message for IE6
Submitted by: jan ancajas

Modified:
    maven/continuum/trunk/continuum-webapp/pom.xml
    maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/form-validate.ftl
    maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/validation.js

Modified: maven/continuum/trunk/continuum-webapp/pom.xml
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/pom.xml?view=diff&rev=548647&r1=548646&r2=548647
==============================================================================
--- maven/continuum/trunk/continuum-webapp/pom.xml (original)
+++ maven/continuum/trunk/continuum-webapp/pom.xml Tue Jun 19 01:09:54 2007
@@ -51,6 +51,8 @@
                 <include>META-INF</include>
                 <include>images/redback</include>
                 <!-- Images from other wars -->
+                <include>template/</include>
+                <!-- validation.js -->
                 <include>template/redback</include>
                 <!-- Templates from other wars -->
                 <include>WEB-INF/classes</include>
@@ -230,6 +232,9 @@
               <tasks>
                 <copy todir="${project.build.directory}/appserver-base">
                   <fileset dir="src/appserver-base" />
+                </copy>
+                <copy todir="src/main/webapp/template">
+                  <fileset file="src/main/resources/template/default/validation.js"/>
                 </copy>
               </tasks>
             </configuration>

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/form-validate.ftl
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/form-validate.ftl?view=diff&rev=548647&r1=548646&r2=548647
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/form-validate.ftl
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/form-validate.ftl
Tue Jun 19 01:09:54 2007
@@ -1,5 +1,5 @@
 <#if parameters.validate?default(false) == true>
-	<script src="${base}/webwork/xhtml/validation.js"></script>
+	<script src="${base}/template/validation.js"></script>
 	<#if parameters.onsubmit?exists>
 		${tag.addParameter('onsubmit', "${parameters.onsubmit}; customOnsubmit(); return validateForm_${parameters.id}();")}
 	<#else>

Modified: maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/validation.js
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/validation.js?view=diff&rev=548647&r1=548646&r2=548647
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/validation.js
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/resources/template/default/validation.js
Tue Jun 19 01:09:54 2007
@@ -19,10 +19,13 @@
 
 function clearErrorMessages(form) {
 
-    var table = form.childNodes[1];
-    if( typeof table == "undefined" ) {
-        table = form.childNodes[0];
-    }
+    //var table = form.childNodes[1];
+    //if( typeof table == "undefined" ) {
+    //    table = form.childNodes[0];
+    //}
+    // ie fix
+    var table = form.getElementsByTagName("table")[0];
+    
 
     // clear out any rows with an "errorFor" attribute
     var rows = table.rows;



Mime
View raw message