Small js fix for 75a8b62cc3

This commit is contained in:
Geert De Deckere 2012-03-18 20:09:05 +01:00
parent eec33a58f6
commit fb9279ca09
1 changed files with 2 additions and 2 deletions

View File

@ -80,9 +80,9 @@ class WooCommerce_Widget_Cart extends WP_Widget {
if ($hide_if_empty && sizeof($woocommerce->cart->get_cart())==0) {
$inline_js = "
jQuery('.hide_cart_widget_if_empty').closest('widget').hide();
jQuery('.hide_cart_widget_if_empty').closest('.widget').hide();
jQuery('body').bind('adding_to_cart', function(){
jQuery(this).find('.hide_cart_widget_if_empty').closest('widget').fadeIn();
jQuery(this).find('.hide_cart_widget_if_empty').closest('.widget').fadeIn();
});
";