app/assets/javascripts/caboose_store/modules/cart.js in caboose-store-0.0.39 vs app/assets/javascripts/caboose_store/modules/cart.js in caboose-store-0.0.40
- old
+ new
@@ -103,9 +103,10 @@
if (self.$addToCart.length) self.$addToCart.trigger('added');
if (!self.$addToCart.find('.message').length) {
self.$addToCart.append($('<p/>').hide().addClass('message').text('Successfully added to cart'));
self.$addToCart.find('.message').fadeIn();
+ Caboose.Store.Modules.Product.$product.trigger('added-to-cart');
setTimeout(function() {
self.$addToCart.find('.message').fadeOut(function() { $(this).remove() });
}, 1000);
}