mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
- 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 git-svn-id: https://svn.apache.org/repos/asf/struts/action2/trunk@409957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user