浏览代码

Merge pull request #274 from tiagofontella/master

Fix feedback icons in input-group
Phuoc Nguyen 11 年之前
父节点
当前提交
270c4e820c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/js/bootstrapValidator.js

+ 4 - 0
src/js/bootstrapValidator.js

@@ -352,6 +352,10 @@
                 if ($parent.find('label').length == 0) {
                 if ($parent.find('label').length == 0) {
                     $icon.css('top', 0);
                     $icon.css('top', 0);
                 }
                 }
+                // Fix icons in .form-group > .input-group
+	        if ($parent.find('.input-group-addon').length != 0) {
+	            $icon.css({'top':0, 'z-index':100});
+	        }
             }
             }
 
 
             // Set live mode
             // Set live mode