잘못한 수정 취소.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7109 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2010-01-04 09:54:25 +00:00
parent b087b147a5
commit 23036eda1d

View file

@ -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) {