Defaulting the quantity fields to nil

This commit is contained in:
Will Marshall
2014-03-06 11:04:11 +11:00
parent e146bb0dd0
commit 2301f2372f
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
%td
%span{"ng-show" => "(product.variants.length == 0)"}
%input{type: :number,
value: 0,
value: nil,
min: 0,
max: "{{product.on_demand && 9999 || product.count_on_hand }}",
name: "variants[{{product.master.id}}]",

View File

@@ -4,7 +4,7 @@
%td {{variant.options_text}}
%td
%input{type: :number,
value: 0,
value: nil,
min: 0,
max: "{{variant.on_demand && 9999 || variant.count_on_hand }}",
name: "variants[{{variant.id}}]", id: "variants_{{variant.id}}"}