vendor/assets/javascripts/formvalidation/framework/uikit.js in formvalidation-rails-0.7.1 vs vendor/assets/javascripts/formvalidation/framework/uikit.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 UIKit form (http://getuikit.com/) */ (function($) { FormValidation.Framework.Uikit = function(element, options) { @@ -56,21 +56,15 @@ */ _fixIcon: function($field, $icon) { var ns = this._namespace, type = $field.attr('type'), field = $field.attr('data-' + ns + '-field'), - row = this.options.fields[field].row || this.options.row.selector, - $row = $field.closest(row), $parent = $field.parent(); if ('checkbox' === type || 'radio' === type) { if ($parent.is('label')) { $icon.insertAfter($parent); } - } - - if ($row.find('label').length === 0) { - $icon.addClass('fv-icon-no-label'); } // Support UIKit form-password component // http://getuikit.com/docs/form-password.html if ($parent.hasClass('uk-form-password')) {