Skip to content

Commit 347d410

Browse files
committed
Update jquery.form-validator.js
1 parent f48cb73 commit 347d410

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

form-validator/jquery.form-validator.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858

5959
if(help) {
6060
var $parent = $element.parent();
61-
var $help = $element.parent().find('.'+className);
62-
// Twitter bs
63-
if ($parent.hasClass('input-group')){
64-
$parent = $parent.parent();
65-
$help = $parent.find('.'+className);
66-
}
61+
var $help = $element.parent().find('.'+className);
62+
// Twitter bs
63+
if ($parent.hasClass('input-group')){
64+
$parent = $parent.parent();
65+
$help = $parent.find('.'+className);
66+
}
6767

6868
if($help.length == 0) {
6969
$help = $('<span />')
@@ -119,10 +119,10 @@
119119
validationRule = $element.attr(config.validationRuleAttribute);
120120

121121
var $parent = $element.parent();
122-
// Twitter bs
123-
if ($parent.hasClass('input-group')){
124-
var $parent = $parent.parent();
125-
}
122+
// Twitter bs
123+
if ($parent.hasClass('input-group')){
124+
var $parent = $parent.parent();
125+
}
126126

127127
// Remove possible error style applied by previous validation
128128
$element

0 commit comments

Comments
 (0)