1 jQuery(document).ready(function($) { 2 //****************** 3 //v1.08 NEW 4 //****************** 5 /* 6 wc_clear_notices 7 doesn't clear old notices in all cases 8 this takes care of it. 9 Switched on via filter. 10 */ 11 /* THESE TWO ONLY WORK 1ST TIME 12 $(".remove").click(function(e) { //'remove' is the class on the 'x' to delete products from the cart 13 $(".woocommerce-error").remove(); 14 e.preventDefault(); 15 }); 16 17 $(".button").click(function(e) { //'button' is the class for the 'apply coupon' and 'update cart' buttons 18 $(".woocommerce-error").remove(); 19 e.preventDefault(); 20 }); 21 */ 22 23 $(document).delegate('.remove', 'click', function(){ 24 $(".woocommerce-error").remove(); 25 }); 26 27 $(document).delegate('.button', 'click', function(){ 28 $(".woocommerce-error").remove(); 29 }); 30 31 });
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.