app/assets/javascripts/rightnow_oms/app/models/cart.js.coffee in rightnow_oms-0.1.3 vs app/assets/javascripts/rightnow_oms/app/models/cart.js.coffee in rightnow_oms-0.1.4
- old
+ new
@@ -15,10 +15,10 @@
total = 0
@get('cartItems').forEach (item) ->
total += item.get('price') * item.get('quantity') unless item.get('hasParent')
round(total, 2)
- ).property("cartItems.@each.quantity")
+ ).property("cartItems.@each.quantity", "cartItems.@each.price")
addCartItem: (item) ->
return @createCartItem(item) if item.mergable == false
cartItem = RightnowOms.CartItem.findByCartableAndParentId(item.cartable_id, item.cartable_type, item.parent_id)