mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 19:32:15 +09:00
잘못한 수정 취소.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7109 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b087b147a5
commit
23036eda1d
1 changed files with 5 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue