vendor/assets/javascripts/formvalidation/framework/uikit.min.js in formvalidation-rails-0.7.0 vs vendor/assets/javascripts/formvalidation/framework/uikit.min.js in formvalidation-rails-0.7.1

- old
+ new

@@ -1,10 +1,10 @@ /*! * FormValidation (http://formvalidation.io) * The best jQuery plugin to validate form fields. Support Bootstrap, Foundation, Pure, SemanticUI, UIKit and custom frameworks * - * @version v0.7.0, built on 2015-08-01 4:57:21 PM + * @version v0.7.1, built on 2016-02-01 12:00:59 AM * @author https://twitter.com/formvalidation - * @copyright (c) 2013 - 2015 Nguyen Huu Phuoc + * @copyright (c) 2013 - 2016 Nguyen Huu Phuoc * @license http://formvalidation.io/license/ */ -!function(a){FormValidation.Framework.Uikit=function(b,c){c=a.extend(!0,{button:{selector:'[type="submit"]:not([formnovalidate])',disabled:"disabled"},control:{valid:"uk-form-success",invalid:"uk-form-danger"},err:{clazz:"uk-text-danger",parent:"^.*(uk-form-controls|uk-width-[\\d+]-[\\d+]).*$"},icon:{valid:null,invalid:null,validating:null,feedback:"fv-control-feedback"},row:{selector:".uk-form-row",valid:"fv-has-success",invalid:"fv-has-error",feedback:"fv-has-feedback"}},c),FormValidation.Base.apply(this,[b,c])},FormValidation.Framework.Uikit.prototype=a.extend({},FormValidation.Base.prototype,{_fixIcon:function(a,b){var c=this._namespace,d=a.attr("type"),e=a.attr("data-"+c+"-field"),f=this.options.fields[e].row||this.options.row.selector,g=a.closest(f);if("checkbox"===d||"radio"===d){var h=a.parent();h.is("label")&&b.insertAfter(h)}0===g.find("label").length&&b.addClass("fv-icon-no-label")},_createTooltip:function(b,c,d){var e=b.data("fv.icon");e&&(e.data("tooltip")&&(e.data("tooltip").off(),e.removeData("tooltip")),e.attr("title",c).css({cursor:"pointer"}),new a.UIkit.tooltip(e))},_destroyTooltip:function(a,b){var c=a.data("fv.icon");if(c){var d=c.data("tooltip");d&&(d.hide(),d.off(),c.off("focus mouseenter").removeData("tooltip")),c.css({cursor:""})}},_hideTooltip:function(a,b){var c=a.data("fv.icon");if(c){var d=c.data("tooltip");d&&d.hide(),c.css({cursor:""})}},_showTooltip:function(a,b){var c=a.data("fv.icon");if(c){c.css({cursor:"pointer"});var d=c.data("tooltip");d&&d.show()}}})}(jQuery); +!function(a){FormValidation.Framework.Uikit=function(b,c){c=a.extend(!0,{button:{selector:'[type="submit"]:not([formnovalidate])',disabled:"disabled"},control:{valid:"uk-form-success",invalid:"uk-form-danger"},err:{clazz:"uk-text-danger",parent:"^.*(uk-form-controls|uk-width-[\\d+]-[\\d+]).*$"},icon:{valid:null,invalid:null,validating:null,feedback:"fv-control-feedback"},row:{selector:".uk-form-row",valid:"fv-has-success",invalid:"fv-has-error",feedback:"fv-has-feedback"}},c),FormValidation.Base.apply(this,[b,c])},FormValidation.Framework.Uikit.prototype=a.extend({},FormValidation.Base.prototype,{_fixIcon:function(a,b){var c=this._namespace,d=a.attr("type"),e=a.attr("data-"+c+"-field"),f=this.options.fields[e].row||this.options.row.selector,g=a.closest(f),h=a.parent();("checkbox"===d||"radio"===d)&&h.is("label")&&b.insertAfter(h),0===g.find("label").length&&b.addClass("fv-icon-no-label"),h.hasClass("uk-form-password")&&b.insertAfter(h)},_createTooltip:function(b,c,d){var e=b.data("fv.icon");e&&(e.data("tooltip")&&(e.data("tooltip").off(),e.removeData("tooltip")),e.attr("title",c).css({cursor:"pointer"}),new a.UIkit.tooltip(e))},_destroyTooltip:function(a,b){var c=a.data("fv.icon");if(c){var d=c.data("tooltip");d&&(d.hide(),d.off(),c.off("focus mouseenter").removeData("tooltip")),c.css({cursor:""})}},_hideTooltip:function(a,b){var c=a.data("fv.icon");if(c){var d=c.data("tooltip");d&&d.hide(),c.css({cursor:""})}},_showTooltip:function(a,b){var c=a.data("fv.icon");if(c){c.css({cursor:"pointer"});var d=c.data("tooltip");d&&d.show()}}})}(jQuery); \ No newline at end of file