mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
* Fixed an issue with :filled/:blank somewhat caused by Sizzle (http://plugins.jquery.com/node/11144)
This commit is contained in:
6
jquery.validate.js
vendored
6
jquery.validate.js
vendored
@@ -165,9 +165,9 @@ $.extend($.fn, {
|
||||
// Custom selectors
|
||||
$.extend($.expr[":"], {
|
||||
// http://docs.jquery.com/Plugins/Validation/blank
|
||||
blank: function(a) {return !$.trim(a.value);},
|
||||
blank: function(a) {return !$.trim("" + a.value);},
|
||||
// http://docs.jquery.com/Plugins/Validation/filled
|
||||
filled: function(a) {return !!$.trim(a.value);},
|
||||
filled: function(a) {return !!$.trim("" + a.value);},
|
||||
// http://docs.jquery.com/Plugins/Validation/unchecked
|
||||
unchecked: function(a) {return !a.checked;}
|
||||
});
|
||||
@@ -505,7 +505,7 @@ $.extend($.validator, {
|
||||
}
|
||||
} catch(e) {
|
||||
this.settings.debug && window.console && console.log("exception occured when checking element " + element.id
|
||||
+ ", check the '" + rule.method + "' method");
|
||||
+ ", check the '" + rule.method + "' method", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user