PageRenderTime 48ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/Wynn/wynn/woocommerce/woocommerce.js

https://github.com/berniecultess/wp-themes
JavaScript | 21 lines | 21 code | 0 blank | 0 comment | 0 complexity | f93a8b51e0dd3da0ededbbee01eef215 MD5 | raw file
Possible License(s): GPL-2.0
  1. jQuery(document).ready(function() {
  2. var $product_container = jQuery('.products-wrap ul.products');
  3. $product_container.imagesLoaded( function() {
  4. $product_container.isotope({
  5. itemSelector : '.hentry'
  6. });
  7. });
  8. jQuery(window).smartresize(function() {
  9. $product_container.isotope( 'reLayout' );
  10. });
  11. jQuery(document).on( 'adding_to_cart', 'body', function(event, $this, $data) {
  12. $this.closest('.product-inner-wrap').find('.product-image-overlay').fadeIn(200);
  13. jQuery('.woocommerce.widget_shopping_cart.widget').find('.widget-content').slideDown().delay(3000).slideUp();
  14. });
  15. jQuery(document).on( 'added_to_cart', 'body', function() {
  16. jQuery('.product-image-overlay').fadeOut(200);
  17. $product_container.isotope( 'reLayout' );
  18. });
  19. jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").chosen({inherit_select_classes: true});
  20. jQuery("select.orderby,select#calc_shipping_country,select#calc_shipping_state").trigger("chosen:updated");
  21. });