1window.jQuery( document ).ready( function ( $ ) { 2 $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { 3 $button && $button.hasClass( 'vc_gitem-link' ) && $button 4 .addClass( 'vc-gitem-add-to-cart-loading-btn' ) 5 .parents( '.vc_grid-item-mini' ) 6 .addClass( 'vc-woocommerce-add-to-cart-loading' ) 7 .append( $( '<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>' ) ); 8 } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { 9 if ( 'undefined' === typeof($button) ) { 10 $button = $( '.vc-gitem-add-to-cart-loading-btn' ); 11 } 12 $button && $button.hasClass( 'vc_gitem-link' ) && $button 13 .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) 14 .parents( '.vc_grid-item-mini' ) 15 .removeClass( 'vc-woocommerce-add-to-cart-loading' ) 16 .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); 17 } ); 18} );
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.