增加功能:Longbow.Validate组件check方法增加对控件状态判断,不可见控件取消检查
This commit is contained in:
parent
ea098360e9
commit
f37e82513a
|
@ -176,7 +176,7 @@
|
|||
Validate.prototype.check = function (element) {
|
||||
var result = true;
|
||||
var $this = $(element);
|
||||
|
||||
if ($this.is(':hidden')) return result;
|
||||
var methods = this.rules(element);
|
||||
for (var rule in methods) {
|
||||
if ($.isFunction($.validator.methods[rule])) {
|
||||
|
|
Loading…
Reference in New Issue