mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#18577197 : XML JS Filter 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7082 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
49843d39c5
commit
1723e18e78
1 changed files with 5 additions and 2 deletions
|
|
@ -101,13 +101,16 @@ var Validator = xe.createApp('Validator', {
|
|||
if ((minlen && maxlen) && (val.length < minlen || val.length > maxlen)) return (result = (!!self.cast('ALERT', [form, name, 'outofrange', minlen, maxlen]) && false));
|
||||
|
||||
if (this.equalto) {
|
||||
var eq_val = get_value(form.elements[this.equalto]);
|
||||
var eq_val = get_value($(form.elements[this.equalto]));
|
||||
if (eq_val != val) return (result = (!!self.cast('ALERT', [form, name, 'equalto']) && false));
|
||||
}
|
||||
|
||||
$.each(rule, function() {
|
||||
var ret = self.cast('APPLY_RULE', [this, val]);
|
||||
if (!ret) return (result = false);
|
||||
if (!ret) {
|
||||
self.cast('ALERT', [form, name, 'invalid_'+this]);
|
||||
return (result = false);
|
||||
}
|
||||
});
|
||||
|
||||
if (!result) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue