Better menu product editing for supplier
This commit is contained in:
@@ -16,3 +16,8 @@ App.Product = DS.Model.extend
|
||||
return image.small if image.small and typeof(image.small) is "string"
|
||||
image
|
||||
).property('image')
|
||||
|
||||
isValid: (->
|
||||
return false unless price = @get('price')
|
||||
return false unless "#{price}".match(/^[+-]?\d+(\.?\d?\d)?$/)
|
||||
).property('price')
|
||||
|
||||
Reference in New Issue
Block a user