Sha256: d0357a81c276bb336cca22c0b4695d2e41a28bc4be0f83a5693844fb4a4579e3
Contents?: true
Size: 759 Bytes
Versions: 36
Compression:
Stored size: 759 Bytes
Contents
var initProductRuleSourceField = function(){ $products_source_field = jQuery('.products_rule_products_source_field input'); $products_source_field.click(function() { $rule_container = jQuery(this).parents('.promotion-rule'); if(this.checked){ if(this.value == 'manual'){ $rule_container.find('.products_rule_products').show(); $rule_container.find('.products_rule_product_group').hide(); } else { $rule_container.find('.products_rule_products').hide(); $rule_container.find('.products_rule_product_group').show(); } } }); $products_source_field.each(function() { $(this).triggerHandler('click'); }); }; jQuery(document).ready(function() { initProductRuleSourceField(); });
Version data entries
36 entries across 32 versions & 9 rubygems