mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Handling max quantity magically
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Darkswarm.directive "max", ->
|
||||
restrict: 'A'
|
||||
link: (scope, elem, attr)->
|
||||
elem.bind 'input', ->
|
||||
if elem.val() > +attr.max
|
||||
elem.val attr.max
|
||||
Reference in New Issue
Block a user