1jQuery(document).ready(function ($) { 2 var updateCart = null; 3 4 $(document).on('change', '.woocommerce-cart-form .cart_item .qty', function () { 5 var updateCartButton = $(document).find('button[name="update_cart"]'); 6 7 if (updateCart !== null) { 8 clearTimeout(updateCart); 9 } 10 11 updateCart = setTimeout(function () { 12 updateCartButton.trigger('click'); 13 }, 1200) 14 }) 15});
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.