增加功能:Longbow.Validate组件check方法增加对控件状态判断,不可见控件取消检查

This commit is contained in:
Argo-MacBookPro 2018-08-26 16:24:44 +08:00
parent ea098360e9
commit f37e82513a
1 changed files with 1 additions and 1 deletions

View File

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