From 9cbdfd47e901207af03e7c5a7cca01f261cd05ff Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Mon, 16 Nov 2015 17:43:06 -0800 Subject: [PATCH] Replace quantity value onBlur --- src/coffee/controllers/stack_controller.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffee/controllers/stack_controller.coffee b/src/coffee/controllers/stack_controller.coffee index 3b2001c6f..148667869 100644 --- a/src/coffee/controllers/stack_controller.coffee +++ b/src/coffee/controllers/stack_controller.coffee @@ -66,8 +66,8 @@ module.exports = class StackController extends BaseController newQuantity = Math.min newQuantity, StackController.MAX_QUANTITY newQuantity = Math.max 1, newQuantity + @$quantityField.val "#{newQuantity}" if newQuantity? and newQuantity isnt oldQuantity - @$quantityField.val "#{newQuantity}" @$bubble.removeClass 'error', Duration.snap @$bubble.removeClass 'error-new', Duration.snap