vendor/assets/javascripts/formvalidation/framework/bootstrap.js in formvalidation-rails-0.7.1 vs vendor/assets/javascripts/formvalidation/framework/bootstrap.js in formvalidation-rails-0.8.1
- old
+ new
@@ -1,14 +1,14 @@
-/*!
+/**
* FormValidation (http://formvalidation.io)
* The best jQuery plugin to validate form fields. Support Bootstrap, Foundation, Pure, SemanticUI, UIKit and custom frameworks
*
- * @version v0.7.1, built on 2016-02-01 12:00:57 AM
* @author https://twitter.com/formvalidation
* @copyright (c) 2013 - 2016 Nguyen Huu Phuoc
* @license http://formvalidation.io/license/
*/
+
/**
* This class supports validating Bootstrap form (http://getbootstrap.com/)
*/
(function($) {
FormValidation.Framework.Bootstrap = function(element, options, namespace) {
@@ -85,14 +85,9 @@
} else if ($fieldParent.parent().hasClass(type)) {
$icon.insertAfter($fieldParent.parent());
}
}
- // The feedback icon does not render correctly if there is no label
- // https://github.com/twbs/bootstrap/issues/12873
- if ($parent.find('label').length === 0) {
- $icon.addClass('fv-icon-no-label');
- }
// Fix feedback icons in input-group
if ($parent.find('.input-group').length !== 0) {
$icon.addClass('fv-bootstrap-icon-input-group')
.insertAfter($parent.find('.input-group').eq(0));
}