Author: tmjee Date: Sun May 28 07:09:09 2006 New Revision: 409957 URL: http://svn.apache.org/viewvc?rev=409957&view=rev Log: - remove the unecessary customOnsubmit() js function call, cause now we are using dojo.event.connect to connect the form's onsubmit event, see form-close.ftl of the simple theme
Modified: struts/action2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl Modified: struts/action2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl URL: http://svn.apache.org/viewvc/struts/action2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl?rev=409957&r1=409956&r2=409957&view=diff ============================================================================== --- struts/action2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl (original) +++ struts/action2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl Sun May 28 07:09:09 2006 @@ -1,8 +1,8 @@ <#if parameters.validate?default(false) == true> <script src="${base}/struts/css_xhtml/validation.js" type="text/javascript"></script> <#if parameters.onsubmit?exists> - ${tag.addParameter('onsubmit', "${parameters.onsubmit}; customOnsubmit(); return validateForm_${parameters.id}();")} + ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")} <#else> - ${tag.addParameter('onsubmit', "customOnsubmit(); return validateForm_${parameters.id}();")} + ${tag.addParameter('onsubmit', "return validateForm_${parameters.id}();")} </#if> </#if>