1jQuery(function ($) { 2 var label = (window.cvtOOS && window.cvtOOS.outOfStock) || 'Out of stock'; 3 4 $(document).on('show_variation', 'form.variations_form', function (e, variation, purchasable) { 5 var $btn = $(this).find('.single_add_to_cart_button'); 6 if (!$btn.data('label')) { $btn.data('label', $.trim($btn.text())); } 7 8 if (!purchasable) { 9 $btn.text(label); 10 } else { 11 $btn.text($btn.data('label')); 12 } 13 }); 14 15 $(document).on('reset_data', 'form.variations_form', function () { 16 var $btn = $(this).find('.single_add_to_cart_button'); 17 if ($btn.data('label')) { $btn.text($btn.data('label')); } 18 }); 19});
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.