1// JavaScript Document 2jQuery(document).ready(function($){ 3 var btn_str = 'form.variations_form.cart input[type="submit"], form.variations_form.cart button[type="submit"]'; 4 var woo_csn_related = false; 5 6 $('input[name="variation_id"]').on('change', function(){ 7 var variation_id = $(this).val(); 8 if(variation_id){ 9 if(woo_cs_obj.coming_soon[variation_id]=='yes'){ 10 $(btn_str).addClass('woo_csn_disabled').prop('disabled', true); 11 $('form.variations_form.cart').append(woo_cs_obj.woo_csn_notice); 12 woo_csn_related = true; 13 }else{ 14 $(btn_str).removeClass('woo_csn_disabled').prop('disabled', false); 15 $('form.variations_form.cart .woo_csn_notices').remove(); 16 } 17 }else{ 18 $('form.variations_form.cart .woo_csn_notices').remove(); 19 } 20 }); 21 22 $('body').on('change', $(btn_str), function(){ 23 if(woo_csn_related && $(this).prop('disabled'==true)){ 24 25 } 26 }); 27 28});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.