File "redux-spacing.min.js"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/kapee-extensions/inc/admin/redux-core/inc/fields/spacing/redux-spacing.min.js
File size: 1.13 KB
MIME-type: text/plain
Charset: utf-8

!function(n){"use strict";redux.field_objects=redux.field_objects||{},redux.field_objects.spacing=redux.field_objects.spacing||{},redux.field_objects.spacing.init=function(i){i=n.redux.getSelector(i,"spacing"),n(i).each(function(){var i=n(this),e=i;(e=i.hasClass("redux-field-container")?e:i.parents(".redux-field-container:first")).is(":hidden")||e.hasClass("redux-field-init")&&(e.removeClass("redux-field-init"),i.find(".redux-spacing-units").select2(),i.find(".redux-spacing-input").on("change",function(){var i,e=n(this).parents(".redux-field:first").find(".field-units").val();0!==n(this).parents(".redux-field:first").find(".redux-spacing-units").length&&(e=n(this).parents(".redux-field:first").find(".redux-spacing-units option:selected").val()),i=n(this).val(),void 0!==e&&i&&(i+=e),n(this).hasClass("redux-spacing-all")?n(this).parents(".redux-field:first").find(".redux-spacing-value").each(function(){n(this).val(i)}):n("#"+n(this).attr("rel")).val(i)}),i.find(".redux-spacing-units").on("change",function(){n(this).parents(".redux-field:first").find(".redux-spacing-input").change(),i.find(".field-units").val(n(this).val())}))})}}(jQuery);