Skip to content

Commit cd35315

Browse files
committed
fixed syntax error
1 parent f2b8220 commit cd35315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jqBootstrapValidation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1158,14 +1158,14 @@
11581158
var type = $this.attr("type");
11591159
if (type === "checkbox") {
11601160
value = ($this.is(":checked") ? value : "");
1161-
var checkboxParent = $this.parents("form").first() || $this.parents(settings.options.classNames.group).first();
1161+
var checkboxParent = $this.parents("form").first() || $this.parents(defaults.options.classNames.group).first();
11621162
if (checkboxParent) {
11631163
value = checkboxParent.find("input[name='" + $this.attr("name") + "']:checked").map(function (i, el) { return $(el).val(); }).toArray().join(",");
11641164
}
11651165
}
11661166
else if (type === "radio") {
11671167
value = ($('input[name="' + $this.attr("name") + '"]:checked').length > 0 ? $this.val() : "");
1168-
var radioParent = $this.parents("form").first() || $this.parents(settings.options.classNames.group).first();
1168+
var radioParent = $this.parents("form").first() || $this.parents(defaults.options.classNames.group).first();
11691169
if (radioParent) {
11701170
value = radioParent.find("input[name='" + $this.attr("name") + "']:checked").map(function (i, el) { return $(el).val(); }).toArray().join(",");
11711171
}

0 commit comments

Comments
 (0)