From 23036eda1d94d547976d73906fddc30bc7a92cfd Mon Sep 17 00:00:00 2001 From: misol Date: Mon, 4 Jan 2010 09:54:25 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=ED=95=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=B7=A8=EC=86=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7109 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/xml_js_filter.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/common/js/xml_js_filter.js b/common/js/xml_js_filter.js index d77b4149e..ea46bc304 100644 --- a/common/js/xml_js_filter.js +++ b/common/js/xml_js_filter.js @@ -66,20 +66,17 @@ var Validator = xe.createApp('Validator', { // hook form submit event $('form') .each(function(){ - if (this.onsubmit && !this.xe_js_filter_controlled) { - this.xe_js_filter_controlled = true; - if(!$.isFunction(this.onsubmit)) { - this['xe:onsubmit'] = this.onsubmit; - this.onsubmit = null; - } + if (this.onsubmit) { + this['xe:onsubmit'] = this.onsubmit; + this.onsubmit = null; } }) .submit(function(){ var legacyFn = this['xe:onsubmit']; var hasLegacyFn = $.isFunction(legacyFn); - var bResult = hasLegacyFn?false:self.run(this); + var bResult = hasLegacyFn?legacyFn.apply(this):self.run(this); - return bResult; + return false; }); }, API_VALIDATE : function(sender, params) {