Browse Source

#456: Adjust the feedback icon position for .input-group element

nghuuphuoc 11 years ago
parent
commit
397a16c40a

+ 1 - 0
CHANGELOG.md

@@ -52,6 +52,7 @@ __Improvements__
 * [#431](https://github.com/nghuuphuoc/bootstrapvalidator/issues/431): Add built time to the build file
 * [#432](https://github.com/nghuuphuoc/bootstrapvalidator/issues/432): Define the callback via ```data-bv-callback-callback``` attribute
 * [#447](https://github.com/nghuuphuoc/bootstrapvalidator/pull/447): [zipCode validator](http://bootstrapvalidator.com/validators/zipCode/) allow to set the country code via another field or callback, thanks to [@AlaskanShade](https://github.com/AlaskanShade)
+* [#456](https://github.com/nghuuphuoc/bootstrapvalidator/issues/456): Adjust the feedback icon position for ```.input-group``` element
 
 __Bug Fixes__
 * [#288](https://github.com/nghuuphuoc/bootstrapvalidator/issues/288): Fix [date validator](http://bootstrapvalidator.com/validators/date/) issue on IE8

+ 1 - 1
dist/css/bootstrapValidator.min.css

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.0-dev, built on 2014-07-02 4:05:46 PM
+ * @version     v0.5.0-dev, built on 2014-07-03 9:37:21 AM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 3 - 3
dist/js/bootstrapValidator.js

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.0-dev, built on 2014-07-02 4:05:46 PM
+ * @version     v0.5.0-dev, built on 2014-07-03 9:37:21 AM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT
@@ -294,11 +294,11 @@
                         $icon.css('top', 0);
                     }
                     // Fix feedback icons in input-group
-                    if ($parent.find('.input-group-addon').length !== 0) {
+                    if ($parent.find('.input-group').length !== 0) {
                         $icon.css({
                             'top': 0,
                             'z-index': 100
-                        });
+                        }).insertAfter($parent.find('.input-group').eq(0));
                     }
                 }
             }

File diff suppressed because it is too large
+ 3 - 3
dist/js/bootstrapValidator.min.js


+ 2 - 2
src/js/bootstrapValidator.js

@@ -293,11 +293,11 @@
                         $icon.css('top', 0);
                     }
                     // Fix feedback icons in input-group
-                    if ($parent.find('.input-group-addon').length !== 0) {
+                    if ($parent.find('.input-group').length !== 0) {
                         $icon.css({
                             'top': 0,
                             'z-index': 100
-                        });
+                        }).insertAfter($parent.find('.input-group').eq(0));
                     }
                 }
             }