Sha256: e23dc6af09f4acdfd8bb185627b4c5b3cfc3540bfa3ff0f637943a05d85e514d
Contents?: true
Size: 872 Bytes
Versions: 27
Compression:
Stored size: 872 Bytes
Contents
import $ from"jquery";var MekariForm=function(){checkAll()},checkAll=function(){$(".checkallbox-wrapper").each(function(){var e=$(this).attr("data-checkall"),c=$(this).find(".checkallbox-parent[data-checkall = '"+e+"']"),t=$(this).find("input[type='checkbox'][data-checkall = '"+e+"']").not(".checkallbox-parent");updateCheckAll(c,t),activateParentCheckAll(c,t),activateChildCheckAll(c,t)})},updateCheckAll=function(e,c){var t=c.length;c.filter(function(){return!0===$(this).is(":checked")}).length===t&&t>0?e.prop("checked",!0):e.prop("checked",!1)},activateParentCheckAll=function(e,c){e.change(function(){$(this).is(":checked")?c.prop("checked",!0):c.prop("checked",!1)})},activateChildCheckAll=function(e,c){c.change(function(){updateCheckAll(e,c)})};$(document).ready(function(){MekariForm()});export default MekariForm; //# sourceMappingURL=mekari-ui-form.min.js.map
Version data entries
27 entries across 27 versions & 1 rubygems