From 52b4d7c9bc82e7ca3e4e4312af7ec3d016ae4f61 Mon Sep 17 00:00:00 2001 From: Toby Jee Date: Sun, 28 May 2006 14:09:09 +0000 Subject: [PATCH] - 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 --- core/src/main/resources/template/css_xhtml/form-validate.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/template/css_xhtml/form-validate.ftl b/core/src/main/resources/template/css_xhtml/form-validate.ftl index 7c53207ce..27e1e7db4 100644 --- a/core/src/main/resources/template/css_xhtml/form-validate.ftl +++ b/core/src/main/resources/template/css_xhtml/form-validate.ftl @@ -1,8 +1,8 @@ <#if parameters.validate?default(false) == true> <#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}();")}