/the-cause/woocommerce/woocommerce.js
JavaScript | 24 lines | 24 code | 0 blank | 0 comment | 0 complexity | e5f049cbf67c882bfe9ee8e06f74cabf MD5 | raw file
Possible License(s): GPL-2.0
- jQuery(document).ready(function() {
- var $product_container = jQuery('.products-wrap ul.products');
- $product_container.imagesLoaded( function() {
- $product_container.isotope({
- itemSelector : '.product'
- });
- });
- jQuery(window).smartresize(function() {
- $product_container.isotope( 'reLayout' );
- });
- jQuery(document).on( 'adding_to_cart', 'body', function(event, $this, $data) {
- $this.closest('.product-inner-wrap').find('.product-image-overlay').fadeIn(200);
- jQuery('.woocommerce.widget_shopping_cart.widget').find('.widget-content').slideDown().delay(3000).slideUp();
- });
- jQuery(document).on( 'added_to_cart', 'body', function() {
- jQuery('.product-image-overlay').fadeOut(200);
- $product_container.isotope( 'reLayout' );
- });
- jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").chosen({inherit_select_classes: true});
- jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").trigger("chosen:updated");
- jQuery(document).on("update_content", function() {
- jQuery.ajax( $fragment_refresh );
- });
- });