Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,18 @@
|
||||
window.jQuery( document ).ready( function ( $ ) {
|
||||
$( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) {
|
||||
$button && $button.hasClass( 'vc_gitem-link' ) && $button
|
||||
.addClass( 'vc-gitem-add-to-cart-loading-btn' )
|
||||
.parents( '.vc_grid-item-mini' )
|
||||
.addClass( 'vc-woocommerce-add-to-cart-loading' )
|
||||
.append( $( '<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>' ) );
|
||||
} ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) {
|
||||
if ( 'undefined' === typeof($button) ) {
|
||||
$button = $( '.vc-gitem-add-to-cart-loading-btn' );
|
||||
}
|
||||
$button && $button.hasClass( 'vc_gitem-link' ) && $button
|
||||
.removeClass( 'vc-gitem-add-to-cart-loading-btn' )
|
||||
.parents( '.vc_grid-item-mini' )
|
||||
.removeClass( 'vc-woocommerce-add-to-cart-loading' )
|
||||
.find( '.vc_wc-load-add-to-loader-wrapper' ).remove();
|
||||
} );
|
||||
} );
|
||||
Reference in new issue
Block a user